2012-06-06 Pedro Alves <palves@redhat.com>
authorPedro Alves <palves@redhat.com>
Wed, 6 Jun 2012 18:40:06 +0000 (18:40 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 6 Jun 2012 18:40:06 +0000 (18:40 +0000)
* infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
context_switch and remove stale comment.

gdb/ChangeLog
gdb/infrun.c

index f14471304b62fdc4750bc7d8b5a9c0bc17f7c20c..94dbba0ef1f5f2a77f1aaf4e040c81db0e4e98b2 100644 (file)
@@ -1,3 +1,8 @@
+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
index b0085525c4455ea11eea8ad775727c56ef12be49..0017211bc44ea3191d7054d90017c585149d606f 100644 (file)
@@ -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;