debug_setcontext syscall

Corey Minyard minyard at acm.org
Thu Dec 18 04:03:35 EST 2003


The following patch adds a syscall to the current linuxppc-2.5 tree.
This syscall allows in-application debuggers to work; it allows
debugging actions (currently setting the single-step bit and branch
trace enable bits) to be done for a setcontext, like a return from a
signal handler.

I have also attached a small program that demonstrates the usage of the
single stepping and branch tracing.

I'd like to get this into the standard kernel, but this is (obviously)
just for comment now.

-Corey
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test_dbg_setcontext.c
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20031217/2da2b4f1/attachment.asc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ppc_dbg-2.5.diff
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20031217/2da2b4f1/attachment.txt>


More information about the Linuxppc-dev mailing list