From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10875 invoked by alias); 27 Oct 2005 12:47:34 -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 10804 invoked by uid 22791); 27 Oct 2005 12:47:26 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 27 Oct 2005 12:47:25 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1EV7AA-0005dx-Vh; Thu, 27 Oct 2005 08:47:23 -0400 Date: Thu, 27 Oct 2005 12:47:00 -0000 From: Daniel Jacobowitz To: Peter Choi Cc: gdb@sources.redhat.com Subject: Re: [NEED HELP] Problem to multithread remote debugging with GDBserver Message-ID: <20051027124722.GB21596@nevyn.them.org> Mail-Followup-To: Peter Choi , gdb@sources.redhat.com References: <20051027102655.88385.qmail@web32913.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051027102655.88385.qmail@web32913.mail.mud.yahoo.com> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-10/txt/msg00157.txt.bz2 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. -- Daniel Jacobowitz CodeSourcery, LLC