From: "H. J. Lu" <hjl@lucon.org>
To: "Neal D. Becker" <nbecker@hns.com>
Cc: gcc@gcc.gnu.org
Subject: Re: __builtin_return_address question
Date: Wed, 21 Aug 2002 07:05:00 -0000 [thread overview]
Message-ID: <20020821070521.A17424@lucon.org> (raw)
In-Reply-To: <x8865y4gx58.fsf@rpppc1.md.hns.com>
On Wed, Aug 21, 2002 at 09:27:15AM -0400, Neal D. Becker wrote:
> I'm trying to make a stack trace function. Use of
> __builtin_return_address looks promising, but the arg has to be a
> constant expression. Because the arg can't be a variable, I don't see
> how I can traceback more than one level of the stack. Any ideas?
If you use glibc, you can use <execinfo.h>.
H.J.
next prev parent reply other threads:[~2002-08-21 7:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-21 6:35 Neal D. Becker
2002-08-21 7:05 ` H. J. Lu [this message]
2002-08-21 7:22 ` Andrew Haley
2002-08-21 9:05 ` Neal D. Becker
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=20020821070521.A17424@lucon.org \
--to=hjl@lucon.org \
--cc=gcc@gcc.gnu.org \
--cc=nbecker@hns.com \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).