我跟随此帖子打印堆栈跟踪How to generate a stacktrace when my gcc C++ app crashes。它在x86 linux中运行良好。任何人都可以教我如何使它在arm-linux上工作吗?在arm-linux中打印堆栈跟踪
我正在使用arm-linux-gcc 4.4.3。
[[email protected] /]# ./test1
Error: signal 11:
[0x0]
在86
[email protected]:~/Desktop/workspace/test/testCatchSeg/src$ ./test1
Error: signal 11:
./test1(_Z7handleri+0x19)[0x804876d]
[0xedd400]
./test1(_Z3bazv+0x10)[0x80487c2]
./test1(_Z3barv+0xb)[0x80487e1]
./test1(_Z3foov+0xb)[0x80487ee]
./test1(main+0x22)[0x8048812]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0x84de37]
./test1[0x80486c1]
我这是怎么编译ARM-Linux的
arm-linux-g++ -g -rdynamic ./testCatchSeg.cpp -o testCatchSeg
你可以发布ARM编译的gcc命令行吗?你无法尝试在ARM目标上运行x86二进制文件,对吗? –