PR 16329: remote debugging broken on Solaris.
[deliverable/binutils-gdb.git] / gdb / sol-thread.c
index b480b58df682127f835061618dc431736c08e00b..3809aec27735b3fe028c5ebf9f4c39fb1231b4b3 100644 (file)
@@ -578,6 +578,10 @@ check_for_thread_db (void)
   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;
This page took 0.023664 seconds and 4 git commands to generate.