]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: split no_shared_libraries, command vs implementation
authorSimon Marchi <simon.marchi@polymtl.ca>
Thu, 11 Jul 2024 16:38:31 +0000 (12:38 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 15 Jul 2024 18:34:12 +0000 (14:34 -0400)
commit89dc60d9570ff8f0f9757a6b0a8acd7204667c66
tree72b988e76fadc444c9f2a08909233e9e25c87988
parent98793b838c3cf99228d7a6d89918932f4effee24
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>
gdb/infcmd.c
gdb/infrun.c
gdb/progspace.c
gdb/remote.c
gdb/solib.c
gdb/solib.h
gdb/symfile.c
gdb/target.c
gdb/target.h