From e1a46050ac834b0d1a125847a117edb56d53f32a Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 10 Jul 2021 18:37:17 +0200 Subject: fix the `make debug` target --- .gdbinit | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gdbinit b/.gdbinit index 4455986..4340f45 100644 --- a/.gdbinit +++ b/.gdbinit @@ -1,2 +1,2 @@ -file kernel.bin +file out/fs/boot/kernel.bin target remote localhost:1234 diff --git a/Makefile b/Makefile index 72e3a27..4441263 100644 --- a/Makefile +++ b/Makefile @@ -34,7 +34,7 @@ out/obj/%.c.o: src/%.c boot: out/fs/boot/kernel.bin qemu-system-i386 -kernel $< $(QFLAGS) -no-shutdown -debug: kernel.bin +debug: out/fs/boot/kernel.bin qemu-system-i386 -kernel $< $(QFLAGS) -s -S & sleep 1 gdb -- cgit v1.2.3