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: Andreas Schwab <schwab at suse dot de>
- To: laurent dot marzullo at one-d dot com
- Cc: gdb at sources dot redhat dot com
- Date: Fri, 03 Dec 2004 16:14:27 +0100
- Subject: Re: backtrace of the current process execution
- References: <1102086363.41b080db92649@ssl0.ovh.net>
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.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."