From: Pedro Alves Date: Fri, 10 Jan 2020 20:05:51 +0000 (+0000) Subject: Use all_non_exited_inferiors in infrun.c X-Git-Url: http://git.efficios.com/?p=deliverable%2Fbinutils-gdb.git;a=commitdiff_plain;h=735fc2ca685b55bf1debbfcea6d2ab544e58a530 Use all_non_exited_inferiors in infrun.c gdb/ChangeLog: 2020-01-10 Pedro Alves * infrun.c (handle_no_resumed): Use all_non_exited_inferiors. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 49501dfd4f..fb7b93f6ee 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2020-01-10 Pedro Alves + + * infrun.c (handle_no_resumed): Use all_non_exited_inferiors. + 2020-01-10 Pedro Alves * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is diff --git a/gdb/infrun.c b/gdb/infrun.c index bcfb178ef9..bc8a3dafcb 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) {