gdb/
authorPedro Alves <palves@redhat.com>
Thu, 28 May 2009 17:19:58 +0000 (17:19 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 28 May 2009 17:19:58 +0000 (17:19 +0000)
commitb3444185bd700fa4e5cea80a10298cf8d16bcbce
tree1330f456627b45848d64ce310201f76b3b4c7628
parent8f5008704e9f9e282da288b71fefb96e889ea961
gdb/
2009-05-28  Pedro Alves  <pedro@codesourcery.com>

* infrun.c (handle_inferior_event): When thread hoping, switch
inferior_ptid to the event thread before removing breakpoints from
the target.  If not stopping, also try to revert back to a thread
that was doing a "next".  Check if that thread still exists before
resuming.
(currently_stepping_thread): Delete and merge with ...
(currently_stepping): ... this.
(currently_stepping_callback): Rename to ...
(currently_stepping_or_nexting_callback): ... this, and also
return true if the thread was stepping over a call (has a
step-resume breakpoint).

gdb/testsuite/
2009-05-28  Pedro Alves  <pedro@codesourcery.com>

* gdb.threads/threxit-hop-specific.c: New.
* gdb.threads/threxit-hop-specific.exp: New.
* gdb.threads/thread-execl.c: New.
* gdb.threads/thread-execl.exp: New.
gdb/ChangeLog
gdb/infrun.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.threads/thread-execl.c [new file with mode: 0644]
gdb/testsuite/gdb.threads/thread-execl.exp [new file with mode: 0644]
gdb/testsuite/gdb.threads/threxit-hop-specific.c [new file with mode: 0644]
gdb/testsuite/gdb.threads/threxit-hop-specific.exp [new file with mode: 0644]