Use all_non_exited_inferiors in infrun.c
authorPedro Alves <palves@redhat.com>
Fri, 10 Jan 2020 20:05:51 +0000 (20:05 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 10 Jan 2020 20:05:51 +0000 (20:05 +0000)
gdb/ChangeLog:
2020-01-10  Pedro Alves  <palves@redhat.com>

* infrun.c (handle_no_resumed): Use all_non_exited_inferiors.

gdb/ChangeLog
gdb/infrun.c

index 49501dfd4f2edf52933d35ea0fccd62841114708..fb7b93f6eee47c5b54835d3690d95bea9b2e85df 100644 (file)
@@ -1,3 +1,7 @@
+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
index bcfb178ef9c52108c0bdfdb6d31145ea42dca49d..bc8a3dafcbaec610063d2f3c050e1267989ded95 100644 (file)
@@ -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)
        {
This page took 0.027702 seconds and 4 git commands to generate.