PPC debug setcontext syscall implementation

Corey Minyard minyard at acm.org
Fri Dec 3 07:41:32 EST 2004


Hello all,

I have attached a patch with the implementation of the debug_setcontext 
system call.  The syscall has been reserved for a while and I've posted 
this before.  So I've ported to the newest kernel and here it is again.

This syscall allows signal handlers to perform debug functions.  It 
allows the signal handler to turn on single-stepping, for instance, and 
the thread will get a trap after executing the next instruction.  It can 
also (on supported PPC processors) turn on branch tracing and get a trap 
after the next branch instruction is executed.  This is useful for 
in-application debugging.

A small test program is also attached that demonstrates the use of this 
interface.

Thanks,

-Corey


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ppc_debug_setcontext
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20041202/596afe5a/attachment.asc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test_dbg_setcontext.c
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20041202/596afe5a/attachment.txt>


More information about the Linuxppc-dev mailing list