public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug remote/16329] New: support for gdb's remote debugging broken on Solaris
@ 2013-12-14  3:31 ivosh at ivosh dot net
  2013-12-14  3:31 ` [Bug remote/16329] " ivosh at ivosh dot net
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: ivosh at ivosh dot net @ 2013-12-14  3:31 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=16329

            Bug ID: 16329
           Summary: support for gdb's remote debugging broken on Solaris
           Product: gdb
           Version: 7.6
            Status: NEW
          Severity: normal
          Priority: P2
         Component: remote
          Assignee: unassigned at sourceware dot org
          Reporter: ivosh at ivosh dot net

Support for remote debugging is broken on Solaris with gdb 7.6.

See the following thread for more information:
https://sourceware.org/ml/gdb/2013-12/msg00016.html

And this patch by Pedro Alves fixes that problem:

diff --git a/gdb/sol-thread.c b/gdb/sol-thread.c
index b480b58..3809aec 100644
--- a/gdb/sol-thread.c
+++ b/gdb/sol-thread.c
@@ -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;
--

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-01-27 17:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-14  3:31 [Bug remote/16329] New: support for gdb's remote debugging broken on Solaris ivosh at ivosh dot net
2013-12-14  3:31 ` [Bug remote/16329] " ivosh at ivosh dot net
2013-12-14  4:18 ` ivosh at ivosh dot net
2013-12-16 14:06 ` cvs-commit at gcc dot gnu.org
2013-12-16 14:15 ` cvs-commit at gcc dot gnu.org
2013-12-16 14:33 ` palves at redhat dot com
2013-12-16 15:59 ` palves at redhat dot com
2014-01-27 17:48 ` cvs-commit at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).