add "make gdb" target
This commit is contained in:
parent
2a0b5ed86e
commit
22d75a4d43
5
Makefile
5
Makefile
|
|
@ -4,7 +4,7 @@ ARCH ?= x86_64
|
|||
|
||||
KERNEL_HDD = kornos.img
|
||||
|
||||
.PHONY: clean all $(COMPONENTS) run bochs
|
||||
.PHONY: clean all $(COMPONENTS) run bochs gdb
|
||||
.DEFAULT_GOAL = $(KERNEL_HDD)
|
||||
|
||||
$(COMPONENTS):
|
||||
|
|
@ -24,6 +24,9 @@ bochs: $(KERNEL_HDD) ext/bochsrc
|
|||
bochs -qf ext/bochsrc
|
||||
rm bochsout.txt
|
||||
|
||||
gdb:
|
||||
QEMUFLAGS="-s -S" $(MAKE) run & gdb -x ext/gdbinit
|
||||
|
||||
ext/limine/limine-install:
|
||||
$(MAKE) -C ext/limine/ limine-install
|
||||
ext/echfs/echfs-utils:
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
file kernel/bin/kernel-x86_64
|
||||
target remote :1234
|
||||
hbreak stivale2_main
|
||||
hbreak halt_catch_fire
|
||||
continue
|
||||
Loading…
Reference in New Issue