* infrun.c (handle_inferior_event): Context switch to the new
authorPedro Alves <palves@redhat.com>
Mon, 29 Jun 2009 18:27:23 +0000 (18:27 +0000)
committerPedro Alves <palves@redhat.com>
Mon, 29 Jun 2009 18:27:23 +0000 (18:27 +0000)
thread when resuming for a new_thread_event.

gdb/ChangeLog
gdb/infrun.c

index 18832c629056c5ac44adde152465c8abdb02eb3b..934248aa9e2d31ab2e21a77cbe41cf45036d4b4e 100644 (file)
@@ -1,3 +1,8 @@
+2009-06-29  Pedro Alves  <pedro@codesourcery.com>
+
+       * infrun.c (handle_inferior_event): Context switch to the new
+       thread when resuming for a new_thread_event.
+
 2009-06-29  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * ada-lang.h (ada_convert_actual): Add GDBARCH argument.
index a2ab386be91da71e6c9df27ae97988e914793372..45a8c8778f09cd8f6314ff411184f5a55e39299a 100644 (file)
@@ -2746,6 +2746,8 @@ targets should add new threads to the thread list themselves in non-stop mode.")
         in either the OS or the native code).  Therefore we need to
         continue all threads in order to make progress.  */
 
+      if (!ptid_equal (ecs->ptid, inferior_ptid))
+       context_switch (ecs->ptid);
       target_resume (RESUME_ALL, 0, TARGET_SIGNAL_0);
       prepare_to_wait (ecs);
       return;
This page took 0.031154 seconds and 4 git commands to generate.