# 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;