• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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;
6
7+  /* Don't attempt to use thread_db for remote targets.  */
8+  if (!(target_can_run (&current_target) || core_bfd))
9+    return;
10+
11   /* Do nothing if we couldn't load libthread_db.so.1.  */
12   if (p_td_ta_new == NULL)
13     return;
14