It turns out the issue comes from the wrong SP register value getting
restored by python script.
TLDR, If you happen to met that GDB cannot unwind correctly, try set
$sp=$sp+4
The issue is that when an exception happened, armv7-m could push 4 bytes to
stack, to make sure SP is 8bytes aligned.
Se
in nxtask_startup (entrypt=0xac41 , argc=1,
argv=0x20005fc0) at sched/task_startup.c:70
#12 0x612a in nxtask_start () at task/task_start.c:114
#13 0x in ?? ()
(gdb)
```
Regards,
Neo
Xu Neo 于2025年1月25日周六 01:33写道:
> It turns out the issue comes from the wrong SP register value gett