themkat / emacs-gba-debug

Better GBA debugging in Emacs with no, or minimal configuration needed.
GNU General Public License v3.0
1 stars 0 forks source link

Possible to show custom variables when debugging? Memory registers etc? #1

Open themkat opened 2 years ago

themkat commented 2 years ago

When coding for the GBA, it can be very beneficial to know the values in certain memory registers (aka special places in RAM). Would it be possible to show these when we encounter breakpoints?

Examples: REG_DSPCNT, REG_BGxCNT etc. Also the various DMA locations

themkat commented 2 years ago

Instead of making this hard by implementing custom lsp-ui stuff, maybe we should just use pre-configured watch-expressions for GDB? That way we could do something simple like having functions (super easy, but boring), or helm menus (probably the best solution, but will make the project dependent on Helm). lsp-java already have a multiple select implementation for helm and other selection frameworks, maybe we can take some inspiration from there? Our version should probably be split into categories (video memory related, DMA, general REG stuff etc.).