pineman / fpt

Gameboy emulator (yes, written in rust)
https://pineman.github.io/fpt
MIT License
5 stars 1 forks source link

Stacktraces #56

Open joajfreitas opened 3 months ago

joajfreitas commented 3 months ago

Add stack traces to the emulator.

We can do this by just keeping track of the PC values when issuing calls. but it would be nicer if this somehow included debug information.

RGBDS usually outputs files like the one attached (typically with the .sym extension but github doesn't like that): rst_timing.txt.

We could read this information and enrich the stacktraces with it.

pineman commented 3 months ago

that would require roms to be accompanied by a .sym file, right?

joajfreitas commented 3 months ago

that would require roms to be accompanied by a .sym file, right?

This would obviously have to be implemented as an optional feature. If no .sym file is available then the debugger and all the rest of the emulator should be able to run anyway.