Fresh from the oven: Remote debugging on a ZX Spectrum with GDB
This is fresh from the oven: very buggy, and totaly untested. I dont know which functionality works and which does not. And I still need to test the source level debugging. But I am just so excited. :)
Everyting you need to know is explained here:
So you wanna be a ZX Spectrum developer IV.
And this is how GNU Debugger debugging a ZX Spectrum program looks like:

The rest of the series is here:
So you wanna be a ZX Spectrum developer I.
So you wanna be a ZX Spectrum developer II.
So you wanna be a ZX Spectrum developer III.
UPDATE: Yep. Buggy. :) Working on it.
Everyting you need to know is explained here:
So you wanna be a ZX Spectrum developer IV.
And this is how GNU Debugger debugging a ZX Spectrum program looks like:

The rest of the series is here:
So you wanna be a ZX Spectrum developer I.
So you wanna be a ZX Spectrum developer II.
So you wanna be a ZX Spectrum developer III.
UPDATE: Yep. Buggy. :) Working on it.
Post edited by tstih on
Comments
- For coff format to be produced one must use binutils for z80, this way it is possible to debug assembler code (which most modern emulators enable anyways),
- For C source level debugging one needs to convert SDCC debug info (.CDB, .ADB text files) to stabs+ format. I am still seeking for possible tools to do that but for now it seems that they need to be developed.
- One last thing: if coff is produced one still has to implement z80_frame_* functions in z80-tdep.c of GDB to be able to inspect frames the way SDCC produces them.
So...lotsa work ahead. :) Any volunteers?