2011-10-24 Pedro Alves <pedro@codesourcery.com>
authorPedro Alves <palves@redhat.com>
Mon, 24 Oct 2011 14:09:20 +0000 (14:09 +0000)
committerPedro Alves <palves@redhat.com>
Mon, 24 Oct 2011 14:09:20 +0000 (14:09 +0000)
gdb/
* infrun.c (handle_inferior_event): Don't assume inferior_ptid is
already set when marking the event thread as not executing in
non-stop mode.

gdb/ChangeLog
gdb/infrun.c

index 3a10983b6c0fad5b00004e195f1e8d4caac51258..6f9974e0300feacaff5c3d04ec1518fda8e497e4 100644 (file)
@@ -1,3 +1,9 @@
+2011-10-24  Pedro Alves  <pedro@codesourcery.com>
+
+       * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
+       already set when marking the event thread as not executing in
+       non-stop mode.
+
 2011-10-24  Pedro Alves  <pedro@codesourcery.com>
 
        * infrun.c (handle_inferior_event): Add debug output for
index da0b82009a3d42b686127e7c71a2e72488b9d1a4..ac2b5aed7617a003b95d928d14ae03d1e61e9e16 100644 (file)
@@ -3239,7 +3239,7 @@ handle_inferior_event (struct execution_control_state *ecs)
     set_executing (minus_one_ptid, 0);
   else if (ecs->ws.kind != TARGET_WAITKIND_SIGNALLED
           && ecs->ws.kind != TARGET_WAITKIND_EXITED)
-    set_executing (inferior_ptid, 0);
+    set_executing (ecs->ptid, 0);
 
   switch (infwait_state)
     {
This page took 0.032275 seconds and 4 git commands to generate.