This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH v2 12/24] Use all_non_exited_inferiors in infrun.c
- From: Pedro Alves <palves at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 17 Oct 2019 23:50:14 +0100
- Subject: [PATCH v2 12/24] Use all_non_exited_inferiors in infrun.c
- References: <20191017225026.30496-1-palves@redhat.com>
gdb/ChangeLog:
yyyy-mm-dd Pedro Alves <palves@redhat.com>
* infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
---
gdb/infrun.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/gdb/infrun.c b/gdb/infrun.c
index a759c5c204..ab73a56604 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -4589,11 +4589,8 @@ handle_no_resumed (struct execution_control_state *ecs)
process exited meanwhile (thus updating the thread list results
in an empty thread list). In this case we know we'll be getting
a process exit event shortly. */
- for (inferior *inf : all_inferiors ())
+ for (inferior *inf : all_non_exited_inferiors ())
{
- if (inf->pid == 0)
- continue;
-
thread_info *thread = any_live_thread_of_inferior (inf);
if (thread == NULL)
{
--
2.14.5