summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordzwdz2021-07-10 18:37:17 +0200
committerdzwdz2021-07-10 18:37:17 +0200
commite1a46050ac834b0d1a125847a117edb56d53f32a (patch)
tree7caf029812b4f4358eff37af86345043395aa78e
parent861c98378a19d39b0a64b1cc20cf2b797a094f09 (diff)
fix the `make debug` target
-rw-r--r--.gdbinit2
-rw-r--r--Makefile2
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