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:
parent
57d87c09a3
commit
4ec89149dd
@ -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.
|
||||
|
@ -156,7 +156,7 @@ bsd_kvm_target::close ()
|
||||
}
|
||||
|
||||
inferior_ptid = null_ptid;
|
||||
discard_all_inferiors ();
|
||||
exit_inferior_silent (current_inferior ());
|
||||
}
|
||||
|
||||
static LONGEST
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user