aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib.c
diff options
context:
space:
mode:
authorKris Warkentin <kewarken@qnx.com>2003-02-24 19:11:04 +0000
committerKris Warkentin <kewarken@qnx.com>2003-02-24 19:11:04 +0000
commit2610b0bff45198901e9816974317481c62d68e1e (patch)
tree3015f1655c24d17b4411398a4af599801eaf4ca1 /gdb/solib.c
parent07c6e936588ef5f135c8e254361ad393e916c8ea (diff)
downloadgdb-2610b0bff45198901e9816974317481c62d68e1e.zip
gdb-2610b0bff45198901e9816974317481c62d68e1e.tar.gz
gdb-2610b0bff45198901e9816974317481c62d68e1e.tar.bz2
added target specific solib find hook
Diffstat (limited to 'gdb/solib.c')
-rw-r--r--gdb/solib.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/solib.c b/gdb/solib.c
index da71798..289b84f 100644
--- a/gdb/solib.c
+++ b/gdb/solib.c
@@ -160,6 +160,11 @@ solib_open (char *in_pathname, char **found_pathname)
1, lbasename (in_pathname), O_RDONLY, 0,
&temp_pathname);
+ /* If not found, try to use target supplied solib search method */
+ if (found_file < 0 && TARGET_SO_FIND_AND_OPEN_SOLIB != NULL)
+ found_file = TARGET_SO_FIND_AND_OPEN_SOLIB
+ (in_pathname, O_RDONLY, &temp_pathname);
+
/* If not found, next search the inferior's $PATH environment variable. */
if (found_file < 0 && solib_search_path != NULL)
found_file = openp (get_in_environ (inferior_environ, "PATH"),