]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
authorEdjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
Fri, 28 Sep 2012 20:20:08 +0000 (20:20 +0000)
committerEdjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
Fri, 28 Sep 2012 20:20:08 +0000 (20:20 +0000)
    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.

gdb/ChangeLog
gdb/solib.c

index 528c276b39e54c159372c3ca19f6bad27d46b0c8..b5aeda17f02ebc438f7b96abd2f798d21d8fa6e3 100644 (file)
@@ -1,3 +1,10 @@
+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.
+
 2012-09-28  selven  <pcthegreat@gmail.com>
 
        Make definition match declaration.
index 01573f87184517fe2db380b3e8345125a9d972a8..d795678e7f5dc235b75b9abe42152ab71f497953 100644 (file)
@@ -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.)