ftmemsim-valgrind/solaris/gdb-sol-thread.patch
Julian Seward ac60633d65 Bug 345248 - add support for Solaris OS in valgrind
Authors of this port:
    Petr Pavlu         setup@dagobah.cz
    Ivo Raisr          ivosh@ivosh.net
    Theo Schlossnagle  theo@omniti.com
            


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15426
2015-07-21 14:44:28 +00:00

14 lines
428 B
Diff

--- gdb-7.6.2/gdb/sol-thread.c.orig 2013-12-26 22:02:08.930437615 +0000
+++ gdb-7.6.2/gdb/sol-thread.c 2013-12-26 22:05:06.506977611 +0000
@@ -588,6 +588,10 @@
td_err_e err;
ptid_t ptid;
+ /* Don't attempt to use thread_db for remote targets. */
+ if (!(target_can_run (&current_target) || core_bfd))
+ return;
+
/* Do nothing if we couldn't load libthread_db.so.1. */
if (p_td_ta_new == NULL)
return;