Debugging with GDB - nspire-emus/firebird GitHub Wiki
Prerequisites
- Firebird v0.20 or later, with the GDB stub exposed on port 3333
- GDB with ARM support
- Ndless 3.9.x or later installed
Procedure
- Start the emulation
- Connect GDB (
arm-none-eabi-gdb -ex "target remote :3333" program.elf
) - Set breakpoints (optional) and continue execution with (
cont
) - Start the program from the document browser
- Debug
Note that most IDEs allow using the GDB protocol to debug programs.
I only tested Qt Creator with this, just select Debug
-> Start Debugging
-> Attach to Running Debug Server