This changeset makes sparc64_linux_step_trap to return 0 when a
authorJose E. Marchesi <jose.marchesi@oracle.com>
Wed, 29 Jan 2014 15:15:05 +0000 (07:15 -0800)
committerJose E. Marchesi <jose.marchesi@oracle.com>
Wed, 29 Jan 2014 15:15:05 +0000 (07:15 -0800)
commit401e27fd717fcbc2efe00e332bdaa46846501323
tree7e0f672777edfae3deda9b72f31360a7587357d5
parentdf3ce959f4f4598f73c4e02f45e65ad1fd6f4f7c
This changeset makes sparc64_linux_step_trap to return 0 when a
breakpoint is set in a `ta 0x6d´ which is not a sigreturn syscall.  In
these cases no rt_frame exists in the stack and thus the read PC is
wrong.

ChangeLog
2014-01-29  Jose E. Marchesi  <jose.marchesi@oracle.com>

* sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
          the sigreturn register save area only if the syscall is
          sigreturn.

testsuite/ChangeLog
2014-01-29  Jose E. Marchesi  <jose.marchesi@oracle.com>

* gdb.arch/sparc-sysstep.exp: New file.
* gdb.arch/sparc-sysstep.c: Likewise.

* gdb.arch/Makefile.in (EXECUTABLES): Add sparc-sysstep.
gdb/ChangeLog
gdb/sparc64-linux-tdep.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.arch/Makefile.in
gdb/testsuite/gdb.arch/sparc-sysstep.c [new file with mode: 0644]
gdb/testsuite/gdb.arch/sparc-sysstep.exp [new file with mode: 0644]