From 292d2fb701a6a65f969e2f44e4e7e9d707a147b7 Mon Sep 17 00:00:00 2001
From: David Phillips <david@yeah.nah.nz>
Date: Sat, 13 Feb 2021 22:42:48 +1300
Subject: 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.
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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:$<
-- 
cgit v1.1