5.1 Debugging with SDCDB

Next: 5.1.1 Compiling for Debugging Up: 5. Debugging Previous: 5. Debugging Contents Index

#
5.1 Debugging with SDCDB

SDCC is distributed with a source level debugger. The debugger uses a command line interface, the command repertoire of the debugger has been kept as close to gdb (the GNU debugger) as possible. The configuration and build process is part of the standard compiler installation, which also builds and installs the debugger in the target directory specified during configuration. The debugger allows you debug BOTH at the C source and at the ASM source level.

Subsections

- 5.1.1 Compiling for Debugging
- 5.1.2 How the Debugger Works
- 5.1.3 Starting the Debugger SDCDB
- 5.1.4 SDCDB Command Line Options
- 5.1.5 SDCDB Debugger Commands
  - break [line | file:line | function | file:function]
  - clear [line | file:line | function | file:function ]
  - continue
  - finish
  - delete [n]
  - info [break | stack | frame | registers ]
  - step
  - next
  - run
  - ptype variable
  - print variable
  - file filename
  - frame
  - set srcmode
  - ! simulator command
  - quit
- 5.1.6 Interfacing SDCDB with DDD
- 5.1.7 Interfacing SDCDB with XEmacs