X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-ppc%2Fsignal.h;h=8cc8b88d4edd3053d2f3a22c1fac5b109bb5f68b;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=580fcc1482593e672cf69ea9239986418f56b3c6;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/include/asm-ppc/signal.h b/include/asm-ppc/signal.h index 580fcc148..8cc8b88d4 100644 --- a/include/asm-ppc/signal.h +++ b/include/asm-ppc/signal.h @@ -157,4 +157,23 @@ typedef struct sigaltstack { #define ptrace_signal_deliver(regs, cookie) do { } while (0) #endif /* __KERNEL__ */ +/* + * These are parameters to dbg_sigreturn syscall. They enable or + * disable certain debugging things that can be done from signal + * handlers. The dbg_sigreturn syscall *must* be called from a + * SA_SIGINFO signal so the ucontext can be passed to it. It takes an + * array of struct sig_dbg_op, which has the debug operations to + * perform before returning from the signal. + */ +struct sig_dbg_op { + int dbg_type; + unsigned long dbg_value; +}; + +/* Enable or disable single-stepping. The value sets the state. */ +#define SIG_DBG_SINGLE_STEPPING 1 + +/* Enable or disable branch tracing. The value sets the state. */ +#define SIG_DBG_BRANCH_TRACING 2 + #endif