From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7808 invoked by alias); 18 Nov 2005 02:36:31 -0000 Received: (qmail 7801 invoked by uid 22791); 18 Nov 2005 02:36:30 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 18 Nov 2005 02:36:30 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1Ecw72-0008FW-6g; Thu, 17 Nov 2005 21:36:28 -0500 Date: Fri, 18 Nov 2005 02:36:00 -0000 From: Daniel Jacobowitz To: Teresa Rivas Cc: gdb@sources.redhat.com Subject: Re: gdb debugging threads help Message-ID: <20051118023628.GA31581@nevyn.them.org> Mail-Followup-To: Teresa Rivas , gdb@sources.redhat.com References: <1132274170.32154.20.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1132274170.32154.20.camel@localhost.localdomain> User-Agent: Mutt/1.5.8i Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2005-11/txt/msg00366.txt.bz2 On Thu, Nov 17, 2005 at 06:36:10PM -0600, Teresa Rivas wrote: > on the target: > # gdbserver :5234 simple Is gdbserver linked to libthread_db? Check the build log, or check the gdbserver binary. > (gdb) set solib-absolute-prefix /target/arm-linux/lib That's probably not right. The paths below solib-absolute-prefix should match the target filesystem. So if solib-absolute-prefix is "/target/arm-linux", then the target /lib/ld-linux.so.2 should be in /target/arm-linux/lib/ld-linux.so.2. > (gdb) set solib-search-path /target/arm-linux/lib You should not need to set that. > (gdb) dir /target/arm-linux/lib Or this. > Source directories searched: /target/arm-linux/lib:$cdir:$cwd > (gdb) set endian little > The target is assumed to be little endian Or this. > (gdb) handle SIG32 nostop noprint pass > Signal Stop Print Pass to program Description > SIG32 No No Yes Real-time event 32 Don't do that; it never helps. > (gdb) add-symbol-file simple > add symbol table from file "simple" at > (y or n) y > Reading symbols > from /home/trivas/dm320-appro/fs/examples/threads/simple...done. Don't do this either. Use "file simple", and do it before issuing the "target remote" command. > and if I try a info shared it says "No shared libraries loaded at this > time" Thread debugging will not work until this works. It should show you the list of libraries and say that they have symbols loaded (at main, not when you first connect). -- Daniel Jacobowitz CodeSourcery, LLC