From: "Hyun Seop Bae" <hsbae@suresofttech.com>
To: <gdb@sourceware.org>
Subject: How to retrieve the caller information from call stack
Date: Mon, 08 Jan 2007 00:17:00 -0000 [thread overview]
Message-ID: <008801c732ba$502534f0$aae074d3@black> (raw)
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
reply other threads:[~2007-01-08 0:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='008801c732ba$502534f0$aae074d3@black' \
--to=hsbae@suresofttech.com \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox