diff options
author | Pedro Alves <palves@redhat.com> | 2012-06-06 18:40:06 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2012-06-06 18:40:06 +0000 |
commit | d25f45d93a552fa5951fef8799ad68086b7bfb32 (patch) | |
tree | 068964d2844a1e23cf7c0c9f8539207356767031 | |
parent | 359f5fe60e35bf3a428289fb3027ee9b6b5c848c (diff) | |
download | gdb-d25f45d93a552fa5951fef8799ad68086b7bfb32.zip gdb-d25f45d93a552fa5951fef8799ad68086b7bfb32.tar.gz gdb-d25f45d93a552fa5951fef8799ad68086b7bfb32.tar.bz2 |
2012-06-06 Pedro Alves <palves@redhat.com>
* infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
context_switch and remove stale comment.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/infrun.c | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f144713..94dbba0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2012-06-06 Pedro Alves <palves@redhat.com> + * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use + context_switch and remove stale comment. + +2012-06-06 Pedro Alves <palves@redhat.com> + * infrun.c (struct execution_control_state): Remove `new_thread_event' field. (handle_inferior_event): Simplify new threads handling; don't diff --git a/gdb/infrun.c b/gdb/infrun.c index b008552..0017211 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -3813,9 +3813,7 @@ handle_inferior_event (struct execution_control_state *ecs) ecs->event_thread->control.trap_expected = 0; - /* Note: We do not call context_switch at this point, as the - context is already set up for stepping the original thread. */ - switch_to_thread (deferred_step_ptid); + context_switch (deferred_step_ptid); deferred_step_ptid = null_ptid; /* Suppress spurious "Switching to ..." message. */ previous_inferior_ptid = inferior_ptid; |