b2 icon indicating copy to clipboard operation
b2 copied to clipboard

Show call stack

Open TobyLobster opened this issue 5 years ago • 2 comments

I realise this is not always going to work (since some code plays with the stack in non-obvious ways), but when stepping through code in the debugger it's useful to see the addresses of where the current routine was called from (and if in future symbols are available, then use those).

TobyLobster avatar Oct 19 '20 09:10 TobyLobster

I realised you could guess which addresses are return addresses by seeing if there was a $20 (jsr) in the right place. Additional heuristics are also possible.

image

I've so far avoided having the CPU leave some kind of byte provenance indicators for the debugger, but that could also be an option.

tom-seddon avatar Jun 15 '24 16:06 tom-seddon

If you're still using b2, and don't mind building it yourself, this can be found on the /wip/tom branch. It'll make its way into a release in due course (the quality bar for the /wip/tom is not very high, but it is the build I use myself).

tom-seddon avatar Jun 15 '24 17:06 tom-seddon