aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib.c
diff options
context:
space:
mode:
authorEdjunior Barbosa Machado <emachado@linux.vnet.ibm.com>2012-09-28 20:20:08 +0000
committerEdjunior Barbosa Machado <emachado@linux.vnet.ibm.com>2012-09-28 20:20:08 +0000
commitf712f01fdfbdbfaed09181f4708d07c234a9631a (patch)
tree038fc175091d86f53e1d26ed482061fd3ced80c2 /gdb/solib.c
parent39181896f1eaf477102b0a5952535c1c66142a14 (diff)
downloadgdb-f712f01fdfbdbfaed09181f4708d07c234a9631a.zip
gdb-f712f01fdfbdbfaed09181f4708d07c234a9631a.tar.gz
gdb-f712f01fdfbdbfaed09181f4708d07c234a9631a.tar.bz2
2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
Edjunior Machado <emachado@linux.vnet.ibm.com> PR gdb/13989 * solib.c (solib_find): Prevent GDB from loading native libraries when debugging a cross-target corefile.
Diffstat (limited to 'gdb/solib.c')
-rw-r--r--gdb/solib.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/gdb/solib.c b/gdb/solib.c
index 01573f8..d795678 100644
--- a/gdb/solib.c
+++ b/gdb/solib.c
@@ -300,11 +300,6 @@ solib_find (char *in_pathname, int *fd)
if (found_file < 0)
temp_pathname = NULL;
- /* If not found, search the solib_search_path (if any). */
- if (found_file < 0 && solib_search_path != NULL)
- found_file = openp (solib_search_path, OPF_TRY_CWD_FIRST,
- in_pathname, O_RDONLY | O_BINARY, &temp_pathname);
-
/* If the search in gdb_sysroot failed, and the path name is
absolute at this point, make it relative. (openp will try and open the
file according to its absolute path otherwise, which is not what we want.)