From mboxrd@z Thu Jan 1 00:00:00 1970 From: nbecker@hns.com (Neal D. Becker) To: gcc@gcc.gnu.org Subject: __builtin_return_address question Date: Wed, 21 Aug 2002 06:35:00 -0000 Message-id: X-SW-Source: 2002-08/msg01234.html 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?