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.
This commit is contained in:
Pedro Alves 2020-01-10 20:05:51 +00:00
parent c17e02e1b5
commit 735fc2ca68
2 changed files with 5 additions and 4 deletions

View 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

View 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)
{