diff options
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/infrun.c | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 49501df..fb7b93f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2020-01-10 Pedro Alves <palves@redhat.com> + * infrun.c (handle_no_resumed): Use all_non_exited_inferiors. + +2020-01-10 Pedro Alves <palves@redhat.com> + * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is not -1. 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) { |