From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29265 invoked by alias); 29 May 2007 19:27:23 -0000 Received: (qmail 29257 invoked by uid 22791); 29 May 2007 19:27:22 -0000 X-Spam-Check-By: sourceware.org Received: from ug-out-1314.google.com (HELO ug-out-1314.google.com) (66.249.92.173) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 29 May 2007 19:27:20 +0000 Received: by ug-out-1314.google.com with SMTP id j40so5889ugd for ; Tue, 29 May 2007 12:27:17 -0700 (PDT) Received: by 10.67.44.4 with SMTP id w4mr6223065ugj.1180466836014; Tue, 29 May 2007 12:27:16 -0700 (PDT) Received: by 10.67.29.10 with HTTP; Tue, 29 May 2007 12:27:15 -0700 (PDT) Message-ID: <3d234af30705291227m584060a1jd1007594719bfd47@mail.gmail.com> Date: Tue, 29 May 2007 19:27:00 -0000 From: "Michael Zhang" To: "Michael Snyder" Subject: Re: remotely debugging muti-threaded applicaton did not work with gdb 6.3.50.20050725-cvs Cc: gdb@sourceware.org In-Reply-To: <655C3D4066B7954481633935A40BB36F041337@ussunex02.svl.access-company.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3d234af30705290913u3d57fa8fp4ab53400027658a0@mail.gmail.com> <655C3D4066B7954481633935A40BB36F041337@ussunex02.svl.access-company.com> X-IsSubscribed: yes 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 X-SW-Source: 2007-05/txt/msg00175.txt.bz2 Thanks all, I will try 6.6 and keep you posted. Cheers, Michael On 5/29/07, Michael Snyder wrote: > > > > Most likely your target is configured to use the new NPTL threads. > GDB 6.3 is quite good at handling NPTL threads, but unfortunately, > gdbserver 6.3 isn't. > > If you can upgrade to GDB 6.6, that would be best. > > At a minimum, you need to build the gdbserver from version 6.6 > and install it on your target. > > Michael > > > > -----Original Message----- > From: gdb-owner@sourceware.org on behalf of Michael Zhang > Sent: Tue 5/29/2007 9:13 AM > To: gdb@sourceware.org > Subject: remotely debugging muti-threaded applicaton did not work with gdb > 6.3.50.20050725-cvs > > Hi there, > > I have been battling with this problem for a week now and searched > all the available information ( GDB manual, gdb mailing list, etc.) > but unfortunately could not find an answer. Here is my setup. > > - Host : x86 running FC1 with linux 2.4.22-1.2115.nptl > - Target : mips le running linux 2.4.17 > - gdb 6.3.50.20050725-cvs and its included gdbserver (all cross-built > for mips processor) > - libc library 2.2.3 ( most of the shared library bear this version ) > > Debugging problem: > > The gdb on the host can talk to the gdbserver on the target and I did > not forget to set "solib-absolute-prefix". If I set breakpoints before > the multiple threads are spawned, I could step through the code when > the breakpoint was hit. However, once the application finished > creating threads and if I stop the program to step through, it won't > step and alway stuck in libc.so.6. The worst is all the threads are > getting killed. And "info threads" never returns anything just > reporting that the gdbserver could not get thread list. > > Any ideas even though it might have bee asked before. I am basically > at my wit's end. > > Cheers, > > Michael > >