Jump to content
IGNORED

Aiming for symbolic debugging?


PkK

Recommended Posts

Some Emulators have support for debugging at the assembler level, via an integrated disassembler.

However, many programmers write their programs in C, and being able to have symbolic debugging would help with program development. We can't have that on the hardware (the ColecoVision hardware doesn't support it), but we could have it in emulators.

Being able to set breakpoints in C code, or quickly see the content of variables would be helpful.

I think it could be possible to create an interface for GDB, the GNU debugger, in an emulator. But I'm not an emulator author (apart from an experimental ColecoVision emulator that I wrote long ago, and that worked for some ColecoVision games only), so someone else would have to do that.

 

What I think I could do, however, is to make the z80 backend in SDCC emit ELF binaries with DWARF debug info, suitable for use with GDB.

Edited by PkK
Fixed typo
  • Like 2
Link to comment
Share on other sites

For consoles/systems that had a serial port, you could do debuggin output in your code to that. I'd done that back in Lisa/Mac Plus days.

 

Along similar lines, I could see it making sense to have an emulator support console debug output, as a similar way.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...