-
Notifications
You must be signed in to change notification settings - Fork 12
Debugging multiple binaries
Pavel Kriz edited this page Nov 14, 2019
·
1 revision
In order to debug multiple binaries (typically application + bootloader) in Atollic TrueSTUDIO (Eclipse in general), add the following line at the beginning of the bootloader's GDB startup script:
add-symbol-file /tmp/arduino_build_259035/KNXduinoBlinkOverKNX.ino.elf 0x080080bc
where /tmp/arduino_build_259035/KNXduinoBlinkOverKNX.ino.elf is the path to application elf file and 0x080080bc is the base address of .text section (not the base address where .isr_vector is located), see readelf -a /tmp/arduino_build_259035/KNXduinoBlinkOverKNX.ino.elf
See https://stackoverflow.com/questions/20380204/how-to-load-multiple-symbol-files-in-gdb/55744855