我跟隨此帖子打印堆棧跟蹤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二進制文件,對嗎? –