shkolnick-kun / stvd-sdcc

GNU General Public License v3.0
2 stars 0 forks source link

SDCC Debug information!!! #2

Open shkolnick-kun opened 7 years ago

shkolnick-kun commented 7 years ago

Cast @spth!

Hi, Philipp!

I've recently added the result of my work on STVD-SDCC integration!

The toollset works well and able to build STVD project with SDCC.

Here are toolchain settings: stvd-settings

But when I try to start the debug session, I get an error box, stating, that "compiler vendor SDCC version 3.6.0 #9615 not supported"!

gdb_error

I think, that some SDCC debug info tweaks needed to go next steps :( Also we may need to patch GDB to make it recognize SDCCs frame format...

Regards!

shkolnick-kun commented 7 years ago

Cast @spth!

spth commented 7 years ago

I'm not familiar with the SDCC / GDB /STVD integration issues, as I mostly just work on SDCC. However, others might be able to help:

Philipp

shkolnick-kun commented 7 years ago

Can I find them on SDCC ML?

spth commented 7 years ago

Probably yes, but I'm not sure.

However, from Peter Dons Tychsen:

You can still use STVD if you hack the compiler ID in SDCC to be a known compiler.

Philipp

P.S.: There are still some issues with the DWARF debug info for stm8 in SDCC 3.6.0, in particular, there are some problems with the debug info for: On-stack variables, bool variables, long long variables. Some of the issues are already fixed in current svn, the others will probably be fixed soon.