From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 525 invoked by alias); 18 Mar 2005 23:53:22 -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 377 invoked from network); 18 Mar 2005 23:53:13 -0000 Received: from unknown (HELO kymasys.com) (66.160.167.99) by sourceware.org with SMTP; 18 Mar 2005 23:53:13 -0000 Received: from horse.he.net ([127.0.0.9]) by kymasys.com for ; Fri, 18 Mar 2005 15:53:05 -0800 Message-Id: <1111189985.21599@horse.he.net> Date: Fri, 18 Mar 2005 23:53:00 -0000 From: "Ajay Patel" To: Daniel Jacobowitz ,Ajay Patel ,gdb@sources.redhat.com Subject: Re: unable to debug statically linked program with linux threads X-IPAddress: 128.107.253.38 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-SW-Source: 2005-03/txt/msg00190.txt.bz2 I got gdb_6.3.orig.tar.gz and gdb_6.3-5.diff from debian. Newer Gdb works on a statically linked binaries. With the same gdb source/binaries I tried different combination. Here is the summary. For iX86 running FC3. --------------------- Program with Linux threads & dynamic linking all thread related command works Program with Linux threads static linking all thread related command works. Program with NPTL & dynamic linking all thread realted command works. Program with NPTL & static linking It gives following erros and thread related command does not work warning: Cannot initialize thread debugging library: unknown thread_db error '22' warning: Cannot initialize thread debugging library: unknown thread_db error '22 With EMAC(PPC-G4) running YDL 4.0. ---------------------------------- With Linux threads static linking or dynamic linking none of the thread related command work. With NPTL static linking or dynamic linking none of the thread related command work. Thanks for your help. Thanks Ajay > On Thu, Mar 17, 2005 at 03:59:12PM -0800, Ajay Patel wrote: > > Daniel, > > > > I checked out gdb from CVS head and applied this > > "http://sourceware.org/ml/gdb-patches/2004-12/msg00240.html" > > patch. > > > > But still no thread commands. > > I'm afraid you'll need the second patch referenced in that message; I > haven't submitted it to gdb-patches yet - thought I had. I will be > doing that after this patch is approved, or you can try the Debian > source package which includes the patch. > > > -- > Daniel Jacobowitz > CodeSourcery, LLC > >