aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2024-07-25 13:41:37 -0400
committerSimon Marchi <simon.marchi@efficios.com>2024-08-12 10:21:15 -0400
commit10ac7e80c01125d1b2754763066dae35b13e6cb0 (patch)
treeef734268077134223b288f2dc91cf4f763e67590 /gdb/solib.c
parent554822d670c6272fe991c5fcbdfb41433b182b9e (diff)
downloadgdb-10ac7e80c01125d1b2754763066dae35b13e6cb0.zip
gdb-10ac7e80c01125d1b2754763066dae35b13e6cb0.tar.gz
gdb-10ac7e80c01125d1b2754763066dae35b13e6cb0.tar.bz2
gdb: remove find_and_open_solib so_list method
Now that the nto port is removed, this is unused. Change-Id: I86565310cdbcde17a837eb10585cdd153f4f03d8 Approved-by: Kevin Buettner <kevinb@redhat.com>
Diffstat (limited to 'gdb/solib.c')
-rw-r--r--gdb/solib.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/gdb/solib.c b/gdb/solib.c
index 931fa57..49f6075 100644
--- a/gdb/solib.c
+++ b/gdb/solib.c
@@ -114,7 +114,6 @@ show_solib_search_path (struct ui_file *file, int from_tty,
static gdb::unique_xmalloc_ptr<char>
solib_find_1 (const char *in_pathname, int *fd, bool is_solib)
{
- const solib_ops *ops = gdbarch_so_ops (current_inferior ()->arch ());
int found_file = -1;
gdb::unique_xmalloc_ptr<char> temp_pathname;
const char *fskind = effective_target_file_system_kind ();
@@ -297,12 +296,6 @@ solib_find_1 (const char *in_pathname, int *fd, bool is_solib)
target_lbasename (fskind, in_pathname),
O_RDONLY | O_BINARY, &temp_pathname);
- /* If not found, and we're looking for a solib, try to use target
- supplied solib search method. */
- if (is_solib && found_file < 0 && ops->find_and_open_solib)
- found_file = ops->find_and_open_solib (in_pathname, O_RDONLY | O_BINARY,
- &temp_pathname);
-
/* If not found, next search the inferior's $PATH environment variable. */
if (found_file < 0 && sysroot == NULL)
found_file = openp (current_inferior ()->environment.get ("PATH"),