ARM-v7a 上, backtrace()没有输出

要加 -funwind-tables参数才有输出,但还是不完整。

./backtrace(add+0x3c)[0x8900]
./backtrace(foo+0x34)[0x898c]

有个帖子说,加上 -finstrument-function 可以输出完成的backtrace,但是我试了没有效果。

http://uclibc.10924.n7.nabble.com/backtrace-not-working-on-ARMv7a-td13098.html

on ARM arch the gcc __builtin_return_address() function does not work
beyond the current function|||| (only __builtin_return_address(0) works),
this explain because we don't obtain a full backtrace. 


你可能感兴趣的:(ARM-v7a 上, backtrace()没有输出)