This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Backtrace library?
- From: paawan oza <paawan1982 at yahoo dot com>
- To: "gdb at sourceware dot org" <gdb at sourceware dot org>, John Yates <jyates at netezza dot com>
- Date: Fri, 21 Aug 2009 08:43:41 -0700 (PDT)
- Subject: Re: Backtrace library?
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 <jyates@netezza.com> wrote:
> From: John Yates <jyates@netezza.com>
> Subject: Backtrace library?
> To: "gdb@sourceware.org" <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
>