[PATCH 4/8] powerpc ptrace: forced_successful_syscall_return()

Subsystems: the rest

STALE6783d

2 messages, 2 authors, 2008-03-24 · open the first message on its own page

[PATCH 4/8] powerpc ptrace: forced_successful_syscall_return()

From: Roland McGrath <hidden>
Date: 2008-03-19 22:50:33

Define the forced_successful_syscall_return() macro to
pair with our force_successful_syscall_return() definition.

Signed-off-by: Roland McGrath <redacted>
---
 include/asm-powerpc/ptrace.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/include/asm-powerpc/ptrace.h b/include/asm-powerpc/ptrace.h
index 891d689..07dd6fe 100644
--- a/include/asm-powerpc/ptrace.h
+++ b/include/asm-powerpc/ptrace.h
@@ -93,6 +93,7 @@ extern unsigned long profile_pc(struct pt_regs *regs);
 	do { \
 		set_thread_flag(TIF_NOERROR); \
 	} while(0)
+#define forced_successful_syscall_return()   (test_thread_flag(TIF_NOERROR))
 
 struct task_struct;
 extern unsigned long ptrace_get_reg(struct task_struct *task, int regno);

Re: [PATCH 4/8] powerpc ptrace: forced_successful_syscall_return()

From: Paul Mackerras <hidden>
Date: 2008-03-24 07:56:00

Roland McGrath writes:
Define the forced_successful_syscall_return() macro to
pair with our force_successful_syscall_return() definition.

Signed-off-by: Roland McGrath <redacted>
Looks OK to me, but what's it useful for?

Paul.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help