Closed gilbertfrancois closed 1 year ago
Thank you for the fast merge.
Thanks for the patch! Also thanks for the very good explanation and the example symbol file. Very useful! It's a good fit for the current debugger. I've merged your PR (I haven't actually tried your code, but I trust you tested it well).
--
I'm not sure if you're aware (it's public information, but maybe not yet widely known): we're working on a new version of the debugger. One that is integrated in the openMSX executable itself. This makes many things much simpler, and it allows stuff like a real-time updated memory-view or disassembly-view. And for symbols: it allows to use symbols in Tcl expressions.
You can find this new debugger in the 'imgui' branch of the openMSX git repository. It's currently work on progress: it's starting to work well, but it still needs a lot of fine-tuning.
The symbol handling (including parsing symbol files) is handled in this file. It's taking a different approach compared to the current debugger. It's still an experiment, so we're evaluating the pros/cons of this new approach:
So unfortunately this means we can't easily port your patch from the current to the new debugger :(
Can I ask you some more information about the VASM compiler? (I hadn't heard of it before). Is this popular for MSX development? Can you tell more about your workflow?
Everything is fixable of course. We can extend the symbol parser in the new debugger with support for VASM. But I'd first like to learn a bit more.
FYI: I added support for multiple symbol file formats, including vasm, in the integrated openMSX debugger. It was on my TODO list for a long time, but I finally got to it.
That is absolutely amazing! Thank you so much.
This pull request adds support for symbol files for the VASM compiler.
vasm symbol files (*.sym)
)SymbolTable::readVASMFile(filename)
.SymbolTable::readFile(filename, type)
, forwarding to the VASM file parser .Below is a toy example of the source file and the VASM symbol file, parsed successfully as shown in the screenshot above.