aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2020-01-10 20:05:51 +0000
committerPedro Alves <palves@redhat.com>2020-01-10 20:05:51 +0000
commit735fc2ca685b55bf1debbfcea6d2ab544e58a530 (patch)
tree8f996862baa54e6ed2ee41c2b3fbc7e7fd19580c /gdb/infrun.c
parentc17e02e1b55b5e9cbdc6581f05bfec96dc8436f4 (diff)
downloadgdb-735fc2ca685b55bf1debbfcea6d2ab544e58a530.zip
gdb-735fc2ca685b55bf1debbfcea6d2ab544e58a530.tar.gz
gdb-735fc2ca685b55bf1debbfcea6d2ab544e58a530.tar.bz2
Use all_non_exited_inferiors in infrun.c
gdb/ChangeLog: 2020-01-10 Pedro Alves <palves@redhat.com> * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r--gdb/infrun.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index bcfb178..bc8a3da 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -4621,11 +4621,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)
{