components/gdb/patches/gdb.solib-svr4.patch
author Rich Burridge <rich.burridge@oracle.com>
Tue, 02 May 2017 17:33:26 -0700
changeset 7964 d9801318ed3d
parent 6420 65948e9e205b
permissions -rw-r--r--
25981468 Build ilmbase and openexr with the GNU compilers

# Patch required for Solaris.
# Will contribute upstream if possible.

--- gdb-7.11-orig/gdb/solib-svr4.c	Tue Feb  9 19:19:39 2016
+++ gdb-7.11/gdb/solib-svr4.c	Thu Mar 10 13:12:47 2016
@@ -174,6 +174,10 @@
       && strcmp (inferior_so_name, "/lib/ld.so.1") == 0)
     return 1;
 
+  if (strcmp (gdb_so_name, "/usr/lib/amd64/ld.so.1") == 0
+      && strcmp (inferior_so_name, "/lib/amd64/ld.so.1") == 0)
+    return 1;
+
   /* Similarly, we observed the same issue with sparc64, but with
      different locations.  */
   if (strcmp (gdb_so_name, "/usr/lib/sparcv9/ld.so.1") == 0