Remove last traces of discard_all_inferiors

The multi-target patch should have removed all traces of
discard_all_inferiors, but somehow one use stayed behind along with
the definition of the function.

discard_all_inferiors is bad now because it blindly exits inferiors of
all target connections.  It's best to remove it.

gdb/ChangeLog:
2020-01-12  Pedro Alves  <palves@redhat.com>

	* bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
	directly for the current inferior instead of
	discard_all_inferiors.
	(discard_all_inferiors): Delete.
This commit is contained in:
Pedro Alves 2020-01-12 00:40:02 +00:00
parent 57d87c09a3
commit 4ec89149dd
3 changed files with 8 additions and 8 deletions

View File

@ -1,3 +1,10 @@
2020-01-12 Pedro Alves <palves@redhat.com>
* bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
directly for the current inferior instead of
discard_all_inferiors.
(discard_all_inferiors): Delete.
2020-01-11 Tom Tromey <tom@tromey.com>
* tui/tui-wingeneral.c (box_win): Check cli_styling.

View File

@ -156,7 +156,7 @@ bsd_kvm_target::close ()
}
inferior_ptid = null_ptid;
discard_all_inferiors ();
exit_inferior_silent (current_inferior ());
}
static LONGEST

View File

@ -260,13 +260,6 @@ inferior_appeared (struct inferior *inf, int pid)
gdb::observers::inferior_appeared.notify (inf);
}
void
discard_all_inferiors (void)
{
for (inferior *inf : all_non_exited_inferiors ())
exit_inferior_silent (inf);
}
struct inferior *
find_inferior_id (int num)
{