From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12286 invoked by alias); 12 Dec 2013 16:46:10 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 12275 invoked by uid 89); 12 Dec 2013 16:46:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 12 Dec 2013 16:46:09 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id rBCGjl7x025154 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 12 Dec 2013 11:45:52 -0500 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id rBCG0Ch3021239; Thu, 12 Dec 2013 11:00:13 -0500 Message-ID: <52A9DD8C.1040900@redhat.com> Date: Thu, 12 Dec 2013 16:46:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 To: Ivo Raisr CC: gdb@sourceware.org Subject: Re: Multi-packet gdb server request/response - problem? References: <1386711973.2226.30.camel@soleil> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2013-12/txt/msg00016.txt.bz2 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 (¤t_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