With all of this, we can use SDCC + GDB to create and debug SMT8 programs in both medium and large models.
The GDB updated with STM8 target support is based on http://gentoo.mirrors.ovh.net/gentoo-distfiles/distfiles/6f/gdb-weekly-13.1.90.20230325.tar.xz The STM8 target is added in the attached patch.
The GDB updated with STM8 target support is based on http://gentoo.mirrors.ovh.net/gentoo-distfiles/distfiles/6f/gdb-weekly-13.1.90.20230325.tar.xz The STM8 target is added in the attached patch.
I attached here the second patch required to debug STM8 large model programs with GDB.
Of course there is no urgence to integrate this patch in the next release. We can take our time to carefully check all the impacts. I see it as an improvement which can be applied at the best time. From my experience with the medium memory model, I would say that it will be esay to get GDB working with STM8 in large model with an accurate DWARF information, provided by this patch and another one which will follow, as I mentioned before. I will look at the GDB side in the next few days to test large...
Of course there is no urgence to integrate this patch in the next release. We can take our time to carefully check all the impacts. I see it as an improvement which can be applied at the best time. From my experience with the medium memory model, I would say that it will be esay to get GDB working with STM8 in large model with an accurate DWARF information, provided by this patch and another one which will follow, as I mentioned before. I will look at the GDB side in the next few days.
Hi Philipp, I am currently porting STM8 target for GDB 13. Is is a personal project based on this work: https://stm8-binutils-gdb.sourceforge.io, but without the binutil part. My goal is to have STM8 programs generated by SDCC fully debugable with GDB, with actively maintained tools. If it is successful, I will make it publicly available. I'm done with medium model, and for large model, we need to have the 24bit address of symbols correctly exposed in DWARF information. This is the goal of the proposed...