Sakrac / IceBroLite

External Debugger for VICE 3.5 and higher
55 stars 7 forks source link

Oscar64 support? #52

Open shinaka opened 1 month ago

shinaka commented 1 month ago

Just came across this project earlier today; a few of us have been looking for options for source level debugging our Oscar64 projects. Is there any chance of implementing this feature? The Oscar64 creator (@drmortalwombat) has said he's open to helping support any kind of integration if the debug information format is documented. The lack of options for source level debugging has been a frustration since I started C C64 homebrew development a couple of years ago (frequently slowing progress down to dig through the generated assembly and try to work together what's happening).

Sakrac commented 1 month ago

There is support for the kick assembler debug format so that is an option, and you can load listings as source debug. Adding other formats would just be a matter of filling out the information and I accept pull requests.

drmortalwombat commented 1 month ago

Now where can I find the kick assembler debug format

Sakrac commented 1 month ago

In the kick assembler manual of all places ;) http://theweb.dk/KickAssembler/KickAssembler.pdf

drmortalwombat commented 1 month ago

This is where I looked, but not being enlightended ... would you by chance have a page number?

Sakrac commented 1 month ago

Hmm.. I can't find it now either, maybe I confused it with the segment documentation for debugging. It is simple to understand though, maybe I just looked at the xml when I implemented it. In case it helps you can look at

bool C64DbgXMLCB(void user, strref tag_or_data, const strref tag_stack, int size_stack, XML_TYPE type)

in https://github.com/Sakrac/IceBroLite/blob/main/src/SourceDebug.cpp line 164. It is not very commented but hopefully clean enough to read. Retro Debugger uses the same format, maybe it is documented there.