SDCC should output suitable debug info for use with gdb.
This requires coordination with the stm8 binutils-gdb project https://stm8-binutils-gdb.sourceforge.io/.
I already merged some patches from there, but there are remaining issues in the debug output from SDCC, e.g. for variables that are partially in registers, partially on the stack.
Philipp
Diff:
The functionality has improved a lot since 3.6.0. There are still some rough corners, and more testing should be done before 3.7.0.
Philipp
Most of the work on the SDCC side is done. When OpenOCD and GDB merge the patches by Åke Rehnman debugging works reasonably well. The only remainign major issues are bugs #2700, 2701.
Philipp