GCC 3.4.6 on x86_64: __builtin_frame_address(1) of topmost frame doesn't return 0x0

Richard Henderson rth@redhat.com
Wed Nov 26 08:09:00 GMT 2008


__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~



More information about the Gcc mailing list