* mi/mi-interp.c (mi_on_resume): Account for whole process
authorPedro Alves <palves@redhat.com>
Thu, 21 May 2009 15:21:28 +0000 (15:21 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 21 May 2009 15:21:28 +0000 (15:21 +0000)
resumes.

gdb/ChangeLog
gdb/mi/mi-interp.c

index 05f9c2a39310d93de120a56beb3510cf6c1e1bc4..70e30dd6db48abb0790bef547177caaa18b93656 100644 (file)
@@ -1,3 +1,8 @@
+2009-05-21  Pedro Alves  <pedro@codesourcery.com>
+
+       * mi/mi-interp.c (mi_on_resume): Account for whole process
+       resumes.
+
 2009-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * m2-exp.y (MAX_FUNC): Fix trailing UNOP_MAX.
index 3426a39c7147d5c6c47654a57dca6a9c8cfffeab..e601ecd52935e7851a1388f52f74c8d981d23285 100644 (file)
@@ -419,7 +419,7 @@ mi_on_resume (ptid_t ptid)
 {
   struct thread_info *tp = NULL;
 
-  if (ptid_equal (ptid, minus_one_ptid))
+  if (ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid))
     tp = inferior_thread ();
   else
     tp = find_thread_pid (ptid);