This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC 3.4.6 on x86_64: __builtin_frame_address(1) of topmost frame doesn't return 0x0
- From: Richard Henderson <rth at redhat dot com>
- To: Tim München <muenchen at physik dot uni-wuppertal dot de>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 25 Nov 2008 07:25:38 -0800
- Subject: Re: GCC 3.4.6 on x86_64: __builtin_frame_address(1) of topmost frame doesn't return 0x0
- References: <200811251302.01435.muenchen@physik.uni-wuppertal.de>
__builtin_frame_address with non-zero arguments is not supported on most
targets these days. It'll work on x86-64 if you also compile with
-fno-omit-frame-pointer.
That said, you almost certainly want to be using backtrace(3) instead.
r~