-
Notifications
You must be signed in to change notification settings - Fork 15
Description
测试环境 rtt5.1.0 nrf52832
add2line用的是https://github.com/armink/CmBacktrace/tree/master/tools/addr2line/win64
编译成功运行后分别进行如下测试
cmb_test ASSERT
PS *\build\keil\Obj> addr2line.exe -e rtthread.axf -afpiC 000176c2 0001830e 00029424 00027186
0x000176c2: assert_hook at */rt-thread/src/timer.c:?
0x0001830e: cmb_test at */rt-thread/components/finsh/shell.c:?
0x00029424: _msh_exec_cmd at */rt-thread/components/finsh/msh.c:294
(inlined by) msh_exec at */rt-thread/components/finsh/msh.c:503
0x00027186: finsh_get_prompt at */rt-thread/components/finsh/shell.c:95
(inlined by) finsh_thread_entry at */rt-thread/components/finsh/shell.c:648
cmb_test UNALIGNED
PS *\build\keil\Obj> addr2line -e rtthread.axf -afpiC 00018374 00018372 00029424 00027186
0x00018374: cmb_test at */rt-thread/src/timer.c:?
0x00018372: cmb_test at */rt-thread/components/finsh/shell.c:?
0x00029424: _msh_exec_cmd at */rt-thread/components/finsh/msh.c:294
(inlined by) msh_exec at */rt-thread/components/finsh/msh.c:503
0x00027186: finsh_get_prompt at */rt-thread/components/finsh/shell.c:95
(inlined by) finsh_thread_entry at */rt-thread/components/finsh/shell.c:648
cmb_test DIVBYZERO
PS *\build\keil\Obj> addr2line -e rtthread.axf -afpiC 0001832e 0001832c 00029424 00027186
0x0001832e: cmb_test at */rt-thread/src/timer.c:?
0x0001832c: cmb_test at */rt-thread/components/finsh/shell.c:?
0x00029424: _msh_exec_cmd at */rt-thread/components/finsh/msh.c:294
(inlined by) msh_exec at */rt-thread/components/finsh/msh.c:503
0x00027186: finsh_get_prompt at */rt-thread/components/finsh/shell.c:95
(inlined by) finsh_thread_entry at */rt-thread/components/finsh/shell.c:648
为什么都没有定位到实际位置呢,,可能什么原因,感谢