From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22851 invoked by alias); 21 Aug 2009 15:43:50 -0000 Received: (qmail 22843 invoked by uid 22791); 21 Aug 2009 15:43:50 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from web112508.mail.gq1.yahoo.com (HELO web112508.mail.gq1.yahoo.com) (98.137.26.150) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Fri, 21 Aug 2009 15:43:44 +0000 Received: (qmail 82168 invoked by uid 60001); 21 Aug 2009 15:43:42 -0000 Message-ID: <229353.81964.qm@web112508.mail.gq1.yahoo.com> Received: from [124.125.223.248] by web112508.mail.gq1.yahoo.com via HTTP; Fri, 21 Aug 2009 08:43:41 PDT Date: Fri, 21 Aug 2009 15:46:00 -0000 From: paawan oza Subject: Re: Backtrace library? To: "gdb@sourceware.org" , John Yates In-Reply-To: <0C8E40D1B3E28947A3EA5E185EF1C9B2AF5FA19AF4@CORP-EXCH01.netezza.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: 2009-08/txt/msg00207.txt.bz2 I think backtrace function of glibc internally use unwind library interface to get backtrace. unwind library interface may be used. I am not sure exactly how gdb reads stack (just walk through esp/ebp or some other way) Regards, Oza. --- On Fri, 8/21/09, John Yates wrote: > From: John Yates > Subject: Backtrace library? > To: "gdb@sourceware.org" > Date: Friday, August 21, 2009, 1:57 AM > Assuming I have an elf image compiled > with full debugging information is there any library I can > use to get a gdb-style backtrace with sourc path and line > number rather than the C library's rather Spartan version? > > /john >