This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
How to retrieve the caller information from call stack
- From: "Hyun Seop Bae" <hsbae at suresofttech dot com>
- To: <gdb at sourceware dot org>
- Date: Mon, 8 Jan 2007 09:16:58 +0900
- Subject: How to retrieve the caller information from call stack
- Reply-to: "Hyun Seop Bae" <hsbae at suresofttech dot com>
Hi there,
I'm looking for a way to retrieve caller information during run-time.
Of course, I can find the name of caller function if I use gdb and set breakpoint.
But, how can I know the name of caller function without gdb?
When I insert the __FUNC__ macro into source codes, I can retrieve the name of current running function.
Is there any macro or something like that to retrieve the name of caller function?
Thanks in advance,
--
Hyun Bae