aboutsummaryrefslogtreecommitdiff
path: root/gdb/inferior.h
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2023-08-17 10:34:27 +0100
committerAndrew Burgess <aburgess@redhat.com>2023-08-23 09:57:38 +0100
commit9324bfeab9b819042ddbab4ce8918ee533db651a (patch)
tree4a410ab13f419970a7b14e296016507da7fc18a9 /gdb/inferior.h
parent604fe2d97f7df4343cace1c2bc42f8726a0657bf (diff)
downloadfsf-binutils-gdb-9324bfeab9b819042ddbab4ce8918ee533db651a.zip
fsf-binutils-gdb-9324bfeab9b819042ddbab4ce8918ee533db651a.tar.gz
fsf-binutils-gdb-9324bfeab9b819042ddbab4ce8918ee533db651a.tar.bz2
gdb: remove the silent parameter from exit_inferior_1 and cleanup
After the previous commit, exit_inferior_1 no longer makes use of the silent parameter. This commit removes this parameter and cleans up the callers. After doing this exit_inferior_1, exit_inferior, and exit_inferior_silent are all equivalent, so rename exit_inferior_1 to exit_inferior and delete exit_inferior_silent, update all the callers. Also I spotted the declaration exit_inferior_num_silent in inferior.h, but this function is not defined anywhere, so I deleted the declaration. There should be no user visible changes after this commit.
Diffstat (limited to 'gdb/inferior.h')
-rw-r--r--gdb/inferior.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/inferior.h b/gdb/inferior.h
index c8429b8..0467258 100644
--- a/gdb/inferior.h
+++ b/gdb/inferior.h
@@ -704,12 +704,11 @@ extern void delete_inferior (struct inferior *todel);
/* Delete an existing inferior list entry, due to inferior detaching. */
extern void detach_inferior (inferior *inf);
+/* Notify observers and interpreters that INF has gone away. Reset the INF
+ object back to an default, empty, state. Clear register and frame
+ caches. */
extern void exit_inferior (inferior *inf);
-extern void exit_inferior_silent (inferior *inf);
-
-extern void exit_inferior_num_silent (int num);
-
extern void inferior_appeared (struct inferior *inf, int pid);
/* Search function to lookup an inferior of TARG by target 'pid'. */