17963194 Remote debugging support broken in gdb 7.6 for Solaris s11-update
authorIvo Raisr <ivo.raisr@oracle.com>
Mon, 23 Dec 2013 14:29:46 -0800
branchs11-update
changeset 2872 5f6aed21119f
parent 2871 899d41b03a8e
child 2873 9e29fa568b11
17963194 Remote debugging support broken in gdb 7.6 for Solaris
components/gdb/patches/gdb.gdb.sol-thread.c.patch
--- a/components/gdb/patches/gdb.gdb.sol-thread.c.patch	Mon Dec 23 14:14:12 2013 -0800
+++ b/components/gdb/patches/gdb.gdb.sol-thread.c.patch	Mon Dec 23 14:29:46 2013 -0800
@@ -1,5 +1,16 @@
 --- gdb-7.6/gdb/sol-thread.c	2012-12-31 22:32:50.000000000 -0800
 +++ gdb-7.6/gdb/sol-thread.c	2013-08-22 12:03:52.780558508 -0700
+@@ -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;
 @@ -1224,7 +1224,7 @@
  
    init_sol_thread_ops ();