On 12/30/2013 12:22 PM, Johannes Pfau wrote:

Sorry, I forgot that the paths are different for cross-compilers. It
should
be 
/arm-unknown-linux-gnueabihf/lib/gcc/arm-unknown-linux-gnueabihf/4.8.2/include/d/gcc/libbacktrace.di

Just to be sure: You also don't get a backtrace with symbols even if
you don't use 'strip'? I use a hg version of crosstool-NG and maybe they
changed something since the last release but I didn't have to use any
special options.


Well, that'll teach me to not use find. from libbacktrace.di:

enum HAVE_DLADDR = false;
...
enum BACKTRACE_SUPPORTED = true;
enum BACKTRACE_USES_MALLOC = false;
enum BACKTRACE_SUPPORTS_THREADS = true;



I do get a [partial] backtrace with non stripped executables:

----------------
0xd027 _Dmain
        ???:0
0xfe07 void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).runAll().void __lambda1()
        
/opt/cortex-a8/arm-eabi/.build/src/gcc-4.8.1/libphobos/libdruntime/rt/dmain2.d:412
0x10231 void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).tryExec(scope void delegate())
        
/opt/cortex-a8/arm-eabi/.build/src/gcc-4.8.1/libphobos/libdruntime/rt/dmain2.d:387
0x103bb void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).runAll()
        
/opt/cortex-a8/arm-eabi/.build/src/gcc-4.8.1/libphobos/libdruntime/rt/dmain2.d:412
0x10231 void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).tryExec(scope void delegate())
        
/opt/cortex-a8/arm-eabi/.build/src/gcc-4.8.1/libphobos/libdruntime/rt/dmain2.d:387
0x10323 _d_run_main
        
/opt/cortex-a8/arm-eabi/.build/src/gcc-4.8.1/libphobos/libdruntime/rt/dmain2.d:420
0xcfcd main
        ???:0
0xb6db9fd9 ???
        ???:0

and it references the location I built the cross compiler, yay! (?)


Reply via email to