diff options
author | Pedro Alves <palves@redhat.com> | 2020-01-12 00:40:02 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2020-01-12 00:40:02 +0000 |
commit | 4ec89149dd83efecea15300bf425c9988f4cd5c0 (patch) | |
tree | 6c1d29a7a212a00fa048f65e340c8d69133c3468 /gdb/inferior.c | |
parent | 57d87c09a33acdce280f4c9ae4f55b885a5cee99 (diff) | |
download | gdb-4ec89149dd83efecea15300bf425c9988f4cd5c0.zip gdb-4ec89149dd83efecea15300bf425c9988f4cd5c0.tar.gz gdb-4ec89149dd83efecea15300bf425c9988f4cd5c0.tar.bz2 |
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.
Diffstat (limited to 'gdb/inferior.c')
-rw-r--r-- | gdb/inferior.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/gdb/inferior.c b/gdb/inferior.c index eb090df..c2e9da3 100644 --- a/gdb/inferior.c +++ b/gdb/inferior.c @@ -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) { |