aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@yeah.nah.nz>2021-02-13 22:42:48 +1300
committerDavid Phillips <david@yeah.nah.nz>2021-02-13 22:42:48 +1300
commit292d2fb701a6a65f969e2f44e4e7e9d707a147b7 (patch)
tree812fa304893ab5f9c0366c2b8e5986de1b81c073
parentf442d8f9b8eef59a9107f5234a7ef6f579cc7ab8 (diff)
downloadaltimeter-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--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3ff7856..0a5c710 100644
--- a/Makefile
+++ b/Makefile
@@ -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:$<