From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11466 invoked by alias); 27 Oct 2005 13:25:57 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 11028 invoked by uid 22791); 27 Oct 2005 13:25:48 -0000 Received: from webmail.streamline-computing.com (HELO webmail.streamline-computing.com) (82.133.39.164) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 27 Oct 2005 13:25:48 +0000 Received: from [82.15.10.199] (helo=cpc2-oxfd8-3-0-cust199.oxfd.cable.ntl.com) by webmail.streamline-computing.com with esmtpa (Exim 4.52) id 1EV7h1-0008AV-0f; Thu, 27 Oct 2005 14:21:19 +0100 Subject: Re: [NEED HELP] Problem to multithread remote debugging with GDBserver From: David Lecomber To: Daniel Jacobowitz Cc: Peter Choi , gdb@sources.redhat.com In-Reply-To: <20051027124722.GB21596@nevyn.them.org> References: <20051027102655.88385.qmail@web32913.mail.mud.yahoo.com> <20051027124722.GB21596@nevyn.them.org> Content-Type: text/plain Date: Thu, 27 Oct 2005 13:25:00 -0000 Message-Id: <1130420692.1548.93.camel@cpc2-oxfd8-3-0-cust199.oxfd.cable.ntl.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-SW-Source: 2005-10/txt/msg00159.txt.bz2 On Thu, 2005-10-27 at 08:47 -0400, Daniel Jacobowitz wrote: > On Thu, Oct 27, 2005 at 03:26:55AM -0700, Peter Choi wrote: > > Hi, > > > > I've heard that GDB 5.3 onwards has supported remote > > debugging multiple thread programs, but I still fail > > to do so. I wonder what I have done wrong. > > > First we set everything up and connect: > > > > (gdb) set solib-search-path > > /usr/local/cris/r59/cris-axis-linux-gnu/lib/ > > (gdb) set solib-absolute-prefix /dev/null/ > > First of all don't do that. Use solib-absolute-prefix and make a host > environment that looks like the target. It's much more likely to work. > > Second, you didn't mention until here that your target was cris. It > just takes a couple of lines to implement multithread support in > gdbserver, but they have to be done for each port; I don't know if > anyone has done that for cris yet. In fact gdbserver didn't support > cris until after the release of 6.3, so you should be using CVS. Hi Daniel A much asked question seems to be how do you implement multithread support in gdbserver.. Where would you go about finding documentation for this, my googling has only so far come up with an email from you of about two years or so ago seeing we need some docs! Is there a True Definitive Guide? Cheers David