[patch] gdbarch_syscall_pc_increment

Aleksandar Ristovski aristovski@qnx.com
Wed Dec 12 14:24:00 GMT 2012


Hello all,


This patch fixes stepping over system call instruction on architectures 
that use software single stepping and also may increment PC upon return 
from the system call to communicate error. (e.g. this is what we do on 
Neutrino).

Note: I could only test this on Neutrino.


Thanks,

Aleksandar


ChangeLog:

       * gdbarch.sh (syscall_pc_increment): New function.
       * gdbarch.h, gdbarch.c: Regenerated.
       * arm-tdep.c (arm_software_single_step): Use
       gdbarch_syscall_pc_increment and if provided, insert second
       single step breakpoint at the incremented address.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: gdbarch_syscall_pc_increment-201212111513.patch
Type: text/x-patch
Size: 6822 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20121212/66ad3d32/attachment.bin>


More information about the Gdb-patches mailing list