add "make gdb" target

This commit is contained in:
Quinten Kock 2020-12-07 21:51:01 +01:00
parent 2a0b5ed86e
commit 22d75a4d43
3 changed files with 9 additions and 3 deletions

View File

@ -1,2 +0,0 @@
file kernel/bin/kernel-x86_64
target remote :1234

View File

@ -4,7 +4,7 @@ ARCH ?= x86_64
KERNEL_HDD = kornos.img KERNEL_HDD = kornos.img
.PHONY: clean all $(COMPONENTS) run bochs .PHONY: clean all $(COMPONENTS) run bochs gdb
.DEFAULT_GOAL = $(KERNEL_HDD) .DEFAULT_GOAL = $(KERNEL_HDD)
$(COMPONENTS): $(COMPONENTS):
@ -24,6 +24,9 @@ bochs: $(KERNEL_HDD) ext/bochsrc
bochs -qf ext/bochsrc bochs -qf ext/bochsrc
rm bochsout.txt rm bochsout.txt
gdb:
QEMUFLAGS="-s -S" $(MAKE) run & gdb -x ext/gdbinit
ext/limine/limine-install: ext/limine/limine-install:
$(MAKE) -C ext/limine/ limine-install $(MAKE) -C ext/limine/ limine-install
ext/echfs/echfs-utils: ext/echfs/echfs-utils:

5
ext/gdbinit Normal file
View File

@ -0,0 +1,5 @@
file kernel/bin/kernel-x86_64
target remote :1234
hbreak stivale2_main
hbreak halt_catch_fire
continue