Hello. I've used addr2line with GNAT Ada compiler on Mac OS X 10.4 PPC for years. When I swiched to Mac OS X 10.6 Intel, I got no more correct output but some "??:0". See how to reproduce it: $ cat stb.adb procedure STB is procedure P1 is begin raise Constraint_Error; end P1; procedure P2 is begin P1; end P2; begin P2; end STB; $ gnatmake -f -g stb -bargs -E gcc -c -g stb.adb gnatbind -E -x stb.ali gnatlink stb.ali -g $ ./stb Execution terminated by unhandled exception Exception name: CONSTRAINT_ERROR Message: stb.adb:4 explicit raise Call stack traceback locations: 0x10000121b 0x1000011fb 0x1000011e2 0x1000011c0 $ addr2line --exe=stb --functions --demangle=gnat 0x10000121b 0x1000011fb 0x1000011e2 0x1000011c0 ?? ??:0 ?? ??:0 ?? ??:0 ?? ??:0 How to display correct output? Thanks, Pascal.
Works for me on linux, both powerpc and x86. Please attach the executable for your testcase to this bug
addr2line doesn't work on darwin with dwarf debug. This is due to the fact that debug infos are not present in executable (but stay in object files). This darwin particularity isn't handled by binutils. As a workaround you can use gdb to display locations.