aboutsummaryrefslogtreecommitdiff
path: root/gdb/inferior.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-07-02 09:20:40 -0600
committerTom Tromey <tom@tromey.com>2018-07-03 09:49:30 -0600
commit057302ceb3b1c171afe9bfa24642af208a60b6e9 (patch)
tree76c173ab12c08a838f852a3bc8f598263b266dca /gdb/inferior.c
parenta50c11c666e07b922d64aa5bb2747f180ce17c03 (diff)
downloadgdb-057302ceb3b1c171afe9bfa24642af208a60b6e9.zip
gdb-057302ceb3b1c171afe9bfa24642af208a60b6e9.tar.gz
gdb-057302ceb3b1c171afe9bfa24642af208a60b6e9.tar.bz2
Remove exit_inferior_num_silent
The sole caller of exit_inferior_num_silent was getting the inferior's number to then use the number to look up the inferior again. I think it's better to simply not have exit_inferior_num_silent; any potential callers that only have the inferior's number should probably be converted to pass the inferior itself around instead. Tested by the buildbot. gdb/ChangeLog 2018-07-03 Tom Tromey <tom@tromey.com> * infrun.c (follow_exec): Use exit_inferior_silent. * inferior.c (exit_inferior_num_silent): Remove. * inferior.h (exit_inferior_num_silent): Don't declare.
Diffstat (limited to 'gdb/inferior.c')
-rw-r--r--gdb/inferior.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/gdb/inferior.c b/gdb/inferior.c
index ab506f6..22beea5 100644
--- a/gdb/inferior.c
+++ b/gdb/inferior.c
@@ -250,14 +250,6 @@ exit_inferior_silent (inferior *inf)
exit_inferior_1 (inf, 1);
}
-void
-exit_inferior_num_silent (int num)
-{
- struct inferior *inf = find_inferior_id (num);
-
- exit_inferior_1 (inf, 1);
-}
-
/* See inferior.h. */
void