According to the discussion at
https://sourceforge.net/p/sdcc/mailman/sdcc-devel/thread/37d1091a-a0d4-5b72-3609-8c0ef0197f6a%40spth.de/
it should be possible to do without the frame pointer in RAM (and thus the code with --debug would be more similar to the one without, which reduces the risk of bugs that cannot be reproduced under debugging).
Should this be implemented?
Philipp
Actually since the last discussion we had I made an effort to fix the cfa debug info. However since the debug debug code generation for stm8/hc08 is somehow broken in the trunk and no response in the mailing list I gave up...
https://sourceforge.net/p/sdcc/mailman/message/35836515/
Unfortunately, I don't know much about the debug info stuff. I mostly just merged patches that looked ok-ish and did some small obvious fixes.
Maybe someone on sdcc-user can help (there might be some users of the debug output on HC08 - maybe some extra linker options are required or such)?
Philipp
Erik fixed that issue a week ago. Are there further SDCC problems, that need to be sorted out before debugging can be done without a frame pointer?
Philipp
I have patched in the missing pieces to produce debug-line info for stm8
gen.c
But we still need debug-frame info as well to be able to unwind the stack
W/o a fp.
Last edit: akre 2017-10-09
Done. SDCC changes submitted upstream.