From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12231 invoked by alias); 28 Oct 2005 01:55:52 -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 12224 invoked by uid 22791); 28 Oct 2005 01:55:48 -0000 Received: from web32915.mail.mud.yahoo.com (HELO web32915.mail.mud.yahoo.com) (68.142.206.62) by sourceware.org (qpsmtpd/0.30-dev) with SMTP; Fri, 28 Oct 2005 01:55:48 +0000 Received: (qmail 79750 invoked by uid 60001); 28 Oct 2005 01:55:47 -0000 Message-ID: <20051028015547.79748.qmail@web32915.mail.mud.yahoo.com> Received: from [203.193.55.70] by web32915.mail.mud.yahoo.com via HTTP; Thu, 27 Oct 2005 18:55:46 PDT Date: Fri, 28 Oct 2005 01:55:00 -0000 From: Peter Choi Subject: Re: [NEED HELP] Problem to multithread remote debugging with GDBserver To: Daniel Jacobowitz Cc: gdb@sources.redhat.com In-Reply-To: <20051027124722.GB21596@nevyn.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2005-10/txt/msg00174.txt.bz2 Hi Daniel, Yes, the path is incorrect. Actually the environment (library path) in both my host computer and my target computer are identical. Both are of FC1. Do I still need to set up the solib-absolute-prefix & solib-search-path??? In fact, I have already tried: 1. set solib-absolute-prefix=/dev/null & solib-search-path=/lib/tls/:/lib, and 2. leave both empty, but in both cases, it seems not working : I still can't see other threads on the host side. 1. I wonder does the version kernel matter on this??? I'm using 2.4.22 (from FC1), do I need to update the kernel??? 2. If I compile my own GDB & GDBserver from 6.3 source code, do I need to specify any option during compilation, to order to enable multithread support on remote debugging???? Thank you for your help. Regards. Peter Choi --- 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. > > > -- > Daniel Jacobowitz > CodeSourcery, LLC > __________________________________ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com