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

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