Menu

#539 Make debugging with gdb work well for stm8

None
closed-fixed
None
5
2018-01-12
2017-10-17
No

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

Discussion

  • Philipp Klaus Krause

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,6 +1,6 @@
     SDCC should output suitable debug info for use with gdb.
    
    -This require coordination with the stm8 binutils-gdb project https://stm8-binutils-gdb.sourceforge.io/.
    +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
    
    • Group: -->
     
  • Philipp Klaus Krause

    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

     
  • Philipp Klaus Krause

    • status: open --> closed-fixed
    • assigned_to: Philipp Klaus Krause
     
  • Philipp Klaus Krause

    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

     

Log in to post a comment.