> SDCC can generate ELF with DWARF. AFAIK, ST has a gdb fork that could be
> used for debugging (I've read they ship it with ST Visual develop).
> AFAIK some people got that combination to work. But I haven't read about
> any successes in getting the gdb source code from ST (there are posts
> about that issue on ST forums).
>
> Philipp
>
Here is a link to the ST's gdb's sources:
http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/legacy-mcus-embedded-software/stsw-st7058.html

Please note that it is not the nost recent: the gdb7.exe which is 
shipped with the STVD 4.3.9 (which is the latest available I think) has 
a gdb7.exe with the following version:

gdb 4.17, ST7 v3.10.2 (Dec  3 2010)

However the in the sources above are from the 3.9.16 version according 
to the line 2847 in the top.c:
   fprintf_filtered (stream, "gdb %s, ST7 v3.9.16 (%s)", version, __DATE__);

There is a guy who have managed to get the latest sources from ST after 
a long procedure, but he have not shared it with me yet.

Also this gdb source is heavilly windows oriented. I have not been able 
to get it compiled under Linux, and the hw abstraction parts were totaly 
left out from it. (They ship them as a separate dll and they did not 
wanted to opensource it I think.)

Using this gdb with modern IDEs (Eclipse CDT, QtCreator) is not really 
possible because it is an ancient version (the original version was 
released ~2000), and it lacks the MI interface.

Recently there were a guy on the openOCD mailing list who started 
looking at adding support for the ST Link's SWIM debugger to the openOCD.

I would be pretty happy if there would be a preferably recent 
gdb+openocd based debugger for this architecture.

Best regards,
Miklos Marton



------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to