components/gdb/patches/gdb.gdb.sol-thread.c.patch
author April Chin <april.chin@oracle.com>
Fri, 15 Jul 2016 07:22:25 -0700
changeset 6420 65948e9e205b
parent 1611 6b7edd68c53f
permissions -rw-r--r--
22928258 update gdb to 7.11 20745970 need to investigate if gdb tests can be added to Makefile test target

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

--- gdb-7.11-orig/gdb/sol-thread.c	Tue Feb  9 19:19:39 2016
+++ gdb-7.11/gdb/sol-thread.c	Thu Mar 10 16:43:30 2016
@@ -1244,7 +1244,7 @@
 
   init_sol_thread_ops ();
 
-  dlhandle = dlopen ("libthread_db.so.1", RTLD_NOW);
+  dlhandle = dlopen ("libthread_db.so.1", RTLD_LAZY|RTLD_GLOBAL);
   if (!dlhandle)
     goto die;