From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17529 invoked by alias); 31 Jul 2003 13:21:47 -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 17516 invoked from network); 31 Jul 2003 13:21:43 -0000 Received: from unknown (HELO ngate.noida.hcltech.com) (202.54.110.230) by sources.redhat.com with SMTP; 31 Jul 2003 13:21:43 -0000 Received: from exch-01.noida.hcltech.com (exch-01 [204.160.254.29]) by ngate.noida.hcltech.com (8.12.8/8.12.8) with ESMTP id h6VDQ1Qr011504; Thu, 31 Jul 2003 18:56:02 +0530 Received: by EXCH-01 with Internet Mail Service (5.5.2656.59) id ; Thu, 31 Jul 2003 18:51:22 +0530 Message-ID: From: "Vijay Saha, Noida" To: gdb@sources.redhat.com, gdb-patches@sources.redhat.com Subject: RE: gdbserver ARM gdb-5.3/5.2 - logout Date: Thu, 31 Jul 2003 13:21:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-SW-Source: 2003-07/txt/msg00365.txt.bz2 I am trying to have a gdbserver for arm-linux target and x86/linux GDB host. I have tried using the GDB-5.2.1 and GDB-5.3. But there is some problem with GDB-5.3 gdbserver Whenever the debugging of remote application is finished, the remote target machine gets LOGOUT !! The target arm-linux gets logged out even with simple non-threaded applications and the GDB host gets the message that "Program exited with code 016." But his problem doesn't come with GDB-5.2.1 gdbserver. Is there different mechanism of handling the inferior task or signal handling in GDB-5.2 and 5.3 ?? Can anyone suggest something so that I can resaolve this logout issue with gdbserver of GDB 5.3 ?? Thanks and regards Vijay -----Original Message----- From: Daniel Jacobowitz [mailto:drow@mvista.com] Sent: Thursday, July 31, 2003 6:27 PM To: gdb@sources.redhat.com; gdb-patches@sources.redhat.com Subject: Re: gdbserver multithread ARM gdb-5.3/5.2 On Thu, Jul 31, 2003 at 02:27:25PM +0530, Vijay Saha, Noida wrote: > Hi > > I am new to gdbserver debugging. So I have got many queries...some of them > may be trivial..so forgive me for that... > > I am trying to have a gdbserver for arm-linux target and x86/linux GDB host. > I have tried using the GDB-5.2.1 but that gdbserver doesn't seem to support > mutithreading. > > Then I had downloaded the released GDB-5.3 through FTP from > sources.redhat.com. > Even the gdbserver of GDB-5.3 doesn't seem to work correctly for > multithreaded applications. > (gdb) info threads > > It only showed me the main thread ID and no other threads even if the test > application had many threads. > It even didn't stop at any breakpoint set on threads.. > > I think the released GDB -5.3 gdbserver is supposed to support > multithreading debugging for ARM targets properly. > > Moreover, On the GDB-patches mailing list I could find some PATCH mail from > Danil Jacobowitz but it says something about "lin-thread.c"... but in > GDB-5.3 I couldn't find any such file. > Is it a totally new file or I have interpreted something incorrect..?? No, that file is obsolete. > Is there any patch of gdbserver of gdb-5.3 or gdb-5.2 ?? > > To debug multithreaded applications, do I need to have the target arm-linux > shared libraries of libthread_db.so.1 on GDB host as well..?? > If yes where to copy it..?? You don't need libthread_db.so.1. You do need pretty much all other libraries. Please look in the manual under solib-absolute-prefix - I'm not sure it's documented in older versions of the manual, but it's there now. > Has anyone supported GDB-5.2 gdbserver for thread debugging (remotely) ?? > > Can someone help me in making myself clear about the patches and GDB > versions for multithreaded debugging through gdbserver ?? > > Is it possible that I use the gdbserver of GDB-5.3 and the GDB host of > GDB-5.2 ?? > I know it won't be recommended but how much is this feasible?? I doubt it will work. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer