diff options
author | David Phillips <david@yeah.nah.nz> | 2021-02-13 22:42:48 +1300 |
---|---|---|
committer | David Phillips <david@yeah.nah.nz> | 2021-02-13 22:42:48 +1300 |
commit | 292d2fb701a6a65f969e2f44e4e7e9d707a147b7 (patch) | |
tree | 812fa304893ab5f9c0366c2b8e5986de1b81c073 | |
parent | f442d8f9b8eef59a9107f5234a7ef6f579cc7ab8 (diff) | |
download | altimeter-292d2fb701a6a65f969e2f44e4e7e9d707a147b7.tar.xz |
Pass ELF path to gdb
I accidentally missed this when adding the recipe to the Makefile in bd929ae0.
This patch adds the ELF path as a GDB argument so that it can resolve symbols
and other debug info.
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -40,7 +40,7 @@ emu: build/altimeter_sim.elf # Attach GDB session to qemu instance started with `make emu` gdb: - $(GDB) -ex "target remote :1234" + $(GDB) -ex "target remote :1234" $(REAL_ELF) # Flash AVR software to microcontroller with AVRdude flash: build/altimeter.hex $(AVRDUDE) -F -V -c avr109 -p $(MCU) -P $(PORT) -b 115200 -U flash:w:$< |