Simplifi debug cmd (allow ctrl-c)

This commit is contained in:
Mathieu Maret 2020-08-18 13:55:52 +02:00
parent 9c6c4f3470
commit fa9955dd7f
2 changed files with 5 additions and 2 deletions

View File

@ -55,8 +55,9 @@ debug: CFLAGS += $(DEBUG_FLAGS)
debug: CXXFLAGS += $(DEBUG_FLAGS)
debug:kernel kernel.sym
#qemu-system-x86_64 -s -S -kernel kernel&
qemu-system-i386 -s -S -kernel kernel&
gdb -s kernel.sym -ex "target remote localhost:1234" -ex "dir core:driver:arch/$(ARCH))'"
#qemu-system-i386 -s -S -kernel kernel&
#gdb -s kernel.sym -ex "target remote localhost:1234" -ex "dir core:driver:arch/$(ARCH))'"
gdb -x debug.gdb
clean:
$(RM) kernel $(asmobj) $(cobj) $(deps) fd.iso kernel.sym

2
debug.gdb Normal file
View File

@ -0,0 +1,2 @@
add-symbol-file kernel.sym
target remote | qemu-system-i386 -S -gdb stdio -kernel kernel