ProDBG
ProDBG copied to clipboard
Add breakpoint support that can be set at startup
Ran into a big issue with this.
It seems when you supply a -moncommands
I have a suggested work-around for this which I really don't like but should work.
At the very start of the code, have a loop like this:
start: jmp start
This code will spin, then ProDBG will connect to VICE and issue a "n" instruction (which stops the execution) Once connected it will add all the breakpoints from the Breakpoint (JSON) file to VICE the regular way (sending the over telnet) After all the breakpoints has been sent ProDBG will patch away the loop by writing (the code will assume that the loop is 3 bytes)
nop
nop
nop
ProDBG will continue the execution.
We can also have "patch_startup" setting in the c64_vice.cfg file that say if we should patch and add breakpoints. Without that ProDBG will just add the breakpoints as soon a connection has been made to VICE so this means that the running problem state is a bit unknown but may be fine in some cases.