drd/tests/swapcontext: Improve the portability of this test further
[valgrind.git] / solaris / gdb-sol-thread.patch
blobd06415c9d5b2993bb44d0483fdc9179db1d0d245
1 --- gdb-7.6.2/gdb/sol-thread.c.orig 2013-12-26 22:02:08.930437615 +0000
2 +++ gdb-7.6.2/gdb/sol-thread.c 2013-12-26 22:05:06.506977611 +0000
3 @@ -588,6 +588,10 @@
4 td_err_e err;
5 ptid_t ptid;
7 + /* Don't attempt to use thread_db for remote targets. */
8 + if (!(target_can_run (&current_target) || core_bfd))
9 + return;
11 /* Do nothing if we couldn't load libthread_db.so.1. */
12 if (p_td_ta_new == NULL)
13 return;