projectgus wrote:Hmm, backtraces are still a bit flaky especially when being called from SDK code (ie stack will be intact and a0/a1 set correctly, but 'bt' produces nonsense). It could be an openocd bug, but I think maybe the call0 function prologue analysis in gdb is misreading the prologues sometimes.
I'm pretty sure gdb for xtensa has custom logic for dealing with stack unwinding, aimed at windowed ABI. I didn't attempt to make it work for call0 and I'm not sure that gcc emits enough DWARF information for it.