aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2024-07-11 12:38:31 -0400
committerSimon Marchi <simon.marchi@efficios.com>2024-07-15 14:34:12 -0400
commit89dc60d9570ff8f0f9757a6b0a8acd7204667c66 (patch)
tree72b988e76fadc444c9f2a08909233e9e25c87988 /gdb/symfile.c
parent98793b838c3cf99228d7a6d89918932f4effee24 (diff)
downloadgdb-89dc60d9570ff8f0f9757a6b0a8acd7204667c66.zip
gdb-89dc60d9570ff8f0f9757a6b0a8acd7204667c66.tar.gz
gdb-89dc60d9570ff8f0f9757a6b0a8acd7204667c66.tar.bz2
gdb: split no_shared_libraries, command vs implementation
The `no_shared_libraries` function is currently used to implement the `nosharedlibrary` command, but it also used internally by other functions. This does not make a very good internal API. Add the `no_shared_libraries_command` function to implement the CLI command. Remove the unused parameters from `no_shared_libraries`. Remove the `from_tty` parameter of `target_pre_inferior`, since it's now unused. Change-Id: I4fcba5ee1e0f7d250aab1a7b62b9ea16265fe962 Approved-By: Tom Tromey <tom@tromey.com> Reviewed-By: Thiago Jung Bauermann <thiago.bauermann@linaro.org>
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r--gdb/symfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c
index fc86841..7c28328 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -1209,7 +1209,7 @@ symbol_file_clear (int from_tty)
/* solib descriptors may have handles to objfiles. Wipe them before their
objfiles get stale by free_all_objfiles. */
- no_shared_libraries (NULL, from_tty);
+ no_shared_libraries ();
current_program_space->free_all_objfiles ();