Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: Ivo Raisr <ivosh@ivosh.net>
Cc: gdb@sourceware.org
Subject: Re: Multi-packet gdb server request/response - problem?
Date: Thu, 12 Dec 2013 16:46:00 -0000	[thread overview]
Message-ID: <52A9DD8C.1040900@redhat.com> (raw)
In-Reply-To: <CANXv6=tByX3xbrKU-uiZwshHVW9k5NcWP5Etd+QDwCU7qe-wFw@mail.gmail.com>

On 12/12/2013 03:44 PM, Ivo Raisr wrote:

> At some point in the debugging session (not sure when but it does not matter),
> I think gdb kicks in the OS-specific functions. For solaris, they are
> found in sol-thread.c.

That's the (or a) problem.  They shouldn't.  sol-thread.c should only
be active for native Solaris debugging.  Try this.

---
 gdb/sol-thread.c | 4 ++++
 1 file changed, 4 insertions(+)

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;
-- 
1.7.11.7



  reply	other threads:[~2013-12-12 16:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-10 12:23 Ivo Raisr
2013-12-10 21:46 ` Philippe Waroquiers
     [not found]   ` <CANXv6=vFYfEDLPVHv_TRK4VTLmFX6c+2hvmodM9dg3gcJA4_jQ@mail.gmail.com>
2013-12-12 15:14     ` Fwd: " Ivo Raisr
2013-12-12 15:44       ` Ivo Raisr
2013-12-12 16:46         ` Pedro Alves [this message]
2013-12-11 11:43 ` Yao Qi
2013-12-14  3:39 Ivo Raisr
2013-12-16 14:31 ` Pedro Alves

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52A9DD8C.1040900@redhat.com \
    --to=palves@redhat.com \
    --cc=gdb@sourceware.org \
    --cc=ivosh@ivosh.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox