diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2024-07-11 12:38:31 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2024-07-15 14:34:12 -0400 |
commit | 89dc60d9570ff8f0f9757a6b0a8acd7204667c66 (patch) | |
tree | 72b988e76fadc444c9f2a08909233e9e25c87988 /gdb/infrun.c | |
parent | 98793b838c3cf99228d7a6d89918932f4effee24 (diff) | |
download | binutils-89dc60d9570ff8f0f9757a6b0a8acd7204667c66.zip binutils-89dc60d9570ff8f0f9757a6b0a8acd7204667c66.tar.gz binutils-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/infrun.c')
-rw-r--r-- | gdb/infrun.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index 1f32a63..b2dfd0c 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -1317,7 +1317,7 @@ follow_exec (ptid_t ptid, const char *exec_file_target) /* Also, loading a symbol file below may trigger symbol lookups, and we don't want those to be satisfied by the libraries of the previous incarnation of this process. */ - no_shared_libraries (nullptr, 0); + no_shared_libraries (); inferior *execing_inferior = current_inferior (); inferior *following_inferior; |