[RFC/PATCH 5/5] powerpc: Allow ptrace write to pt_regs trap
Ulrich Weigand
Ulrich.Weigand at de.ibm.com
Wed May 30 01:41:56 EST 2007
Benjamin Herrenschmidt <benh at kernel.crashing.org> wrote on 05/29/2007
08:45:24 AM:
> This patch allows a ptracer to write to the "trap" word of the
> pt_regs. This, along with the previous patch, should enable gdb
> to properly handle syscall restarting after executing a separate
> function (at least when there's no restart block).
This doesn't look sufficient. If you want GDB to use the save/
restore style means of handling interrupted calls (like i386),
at the very least we also need the capability to *write* the
orig_gpr3 field, which is currently prohibited. (I don't know
why this is case, though.)
Mit freundlichen Gruessen / Best Regards
Ulrich Weigand
--
Dr. Ulrich Weigand | Phone: +49-7031/16-3727
GNU compiler/toolchain for Linux on System z and Cell BE
IBM Deutschland Entwicklung GmbH
Vorsitzender des Aufsichtsrats: Martin Jetter | Geschäftsführung:
Herbert Kircher
Sitz der Gesellschaft: Böblingen | Registergericht: Amtsgericht
Stuttgart, HRB 243294
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20070529/3e33d6ad/attachment.htm>
More information about the Linuxppc-dev
mailing list