This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
make mi_on_resume account for whole process resumes
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 21 May 2009 16:11:38 +0100
- Subject: make mi_on_resume account for whole process resumes
Looks like I forgot to merge this bit. When starting up a new inferior
(startup_inferior), we'll get here with a whole-process wildcard resume,
not an all-processes wildcard.
--
Pedro Alves
2009-05-21 Pedro Alves <pedro@codesourcery.com>
* mi/mi-interp.c (mi_on_resume): Account for whole process
resumes.
---
gdb/mi/mi-interp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: src/gdb/mi/mi-interp.c
===================================================================
--- src.orig/gdb/mi/mi-interp.c 2009-05-21 15:51:40.000000000 +0100
+++ src/gdb/mi/mi-interp.c 2009-05-21 15:51:43.000000000 +0100
@@ -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);