This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: backtrace of the current process execution
- From: Bob Rossi <bob at brasko dot net>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: laurent dot marzullo at one-d dot com, gdb at sources dot redhat dot com
- Date: Fri, 3 Dec 2004 10:19:57 -0500
- Subject: Re: backtrace of the current process execution
- References: <1102086363.41b080db92649@ssl0.ovh.net> <je1xe74dnw.fsf@sykes.suse.de>
On Fri, Dec 03, 2004 at 04:14:27PM +0100, Andreas Schwab wrote:
> laurent.marzullo@one-d.com writes:
>
> > I would like to know if there's a way to know the call stack of a running
> > process into the process itself ?
>
> Try the backtrace function from <execinfo.h>.
>
> Andreas.
I think you can link to valgrind and it knows how to give backtrace's
via a macro at any point in your code.
Bob Rossi