From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20142 invoked by alias); 5 Dec 2006 12:01:12 -0000 Received: (qmail 20128 invoked by uid 22791); 5 Dec 2006 12:01:09 -0000 X-Spam-Check-By: sourceware.org Received: from web50502.mail.yahoo.com (HELO web50502.mail.yahoo.com) (206.190.38.78) by sourceware.org (qpsmtpd/0.31) with SMTP; Tue, 05 Dec 2006 12:01:01 +0000 Received: (qmail 3725 invoked by uid 60001); 5 Dec 2006 12:00:58 -0000 Message-ID: <20061205120058.3723.qmail@web50502.mail.yahoo.com> X-YMail-OSG: NZ5G2hQVM1ln_zvRfsSsNufJ6yo1c9TzgGpsMj7O1L799b_BkEskGAqEvpqd43Xf6HZ8eggi7Eo96sH0Y65WiQl0JUUHbRuJ63LIAF8Vohasq7Dg2jLriotIKBbIWamoa.I8w2x2R3obKMA- Received: from [203.187.215.126] by web50502.mail.yahoo.com via HTTP; Tue, 05 Dec 2006 04:00:58 PST Date: Tue, 05 Dec 2006 12:01:00 -0000 From: Mangesh Edake Subject: Re: gdbserver + arm nommu To: Daniel Jacobowitz Cc: Kaushik karandikar , gdb In-Reply-To: <20061118163128.GA14647@nevyn.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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: 2006-12/txt/msg00041.txt.bz2 Hi all, I am able to debug a program using gdb-6.4 and gdb-6.4/gdbserver. Many thanks to Daniel for his precious suggestions. Currently I am trying to debug a multi-threaded program using the same gdbserver. I have compiled uClibc with the pThread debugging enabled and then statically linked gdbserver with libthread_db.a and the program with libpthread.a, as my target doesn't support dynamic linking (no shared lib support, even toolchain cannot create .so files). Now when I try to debug a program, it kills at 'pthread_create' line. Between 'info th' from the gdb running on host lists only the main process as a thread. I checked with gdbserver and it supports many of the q-packets and thread related packets. In this case gdb at host is supposed to refer the exactly same 'pthread symbols' as target is, but it cannot. Even I cannot try solib-absolute-prefix or solib-search-path, since there are no corresponding .so (libthread_db.so) files generated at host. Hence looking at the scenario, is this causing my program to terminate? and is there any way to tell gdb the 'pthread symbols' statically? Thanks in advance, Mangesh Edake. --- Daniel Jacobowitz wrote: > On Sat, Nov 18, 2006 at 06:05:01AM -0800, Mangesh > Edake wrote: > > > > Hi, > > I looked for the patches provided by nathan. I > > found those patches are for m68k and apply to the > > files gdb/m68k-tdep.c and gdb/m68klinux-tdep.c > > Those patches have nothing to do with this. > > If you can't try CVS HEAD, see if it works, and tell > us what > happens if it doesn't work, then I'm sorry but we > can't help > you. > > > There is no patch for ARM for gdb-6.x to make > > gdbserver work on ARM platform. So we have decided > to > > continue with gdb-5.2.1 as it is patched. Now in > this > > case I have arm-elf-gdb version 6.4 and gdbserver > that > > will run on ARM board is from gdb-5.2.1, so will > this > > create any problems due to version mismatch going > > further? > > It should be fine. > > -- > Daniel Jacobowitz > CodeSourcery > ____________________________________________________________________________________ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com