2012-06-12 Pedro Alves <palves@redhat.com>
authorPedro Alves <palves@redhat.com>
Tue, 12 Jun 2012 18:30:26 +0000 (18:30 +0000)
committerPedro Alves <palves@redhat.com>
Tue, 12 Jun 2012 18:30:26 +0000 (18:30 +0000)
commit8b3ee56d30019718f86b4bde27d440f11af24ab0
treea3e5243d2b91870d738a502c4ecf3567fa7dbde8
parent5d60742e2dd3c9b475dce54b56043a358751bbb8
2012-06-12  Pedro Alves  <palves@redhat.com>

* infrun.c (infrun_thread_stop_requested_callback): Don't switch
threads here.
(prepare_for_detach): No longer context switch here in non-stop
mode.
(fetch_inferior_event): Ditto.
(handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
to the event thread before removing breakpoints.  Switch to the
event thread before inserting breakpoints and resuming.
(handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
event thread before resuming.
(handle_inferior_event) <stepping_past_singlestep_breakpoint>:
Switch to the event thread before removing breakpoints.
gdb/ChangeLog
gdb/infrun.c