From d25f45d93a552fa5951fef8799ad68086b7bfb32 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Wed, 6 Jun 2012 18:40:06 +0000 Subject: 2012-06-06 Pedro Alves * infrun.c (handle_inferior_event) : Use context_switch and remove stale comment. --- gdb/infrun.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'gdb/infrun.c') 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; -- cgit v1.1