Initial support for running in GDB

This commit is contained in:
Quinten Kock 2020-12-07 21:30:04 +01:00
parent 366bd653f8
commit 8c033a462d
3 changed files with 3 additions and 2 deletions

2
.gdbinit Normal file
View File

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

View File

@ -17,7 +17,6 @@ run: $(KERNEL_HDD)
-drive file=$(KERNEL_HDD),format=raw \
-smp 2 \
-enable-kvm \
-debugcon stdio \
$(QEMUFLAGS)
bochs: $(KERNEL_HDD) ext/bochsrc

View File

@ -8,7 +8,7 @@ LDSCRIPT = make/$(ARCH)/linker.ld
-include make/$(ARCH)/make.config
CFLAGS ?= -O2
CFLAGS ?= -Og -g
CFLAGS := $(CFLAGS) $(ARCH_CFLAGS) \
-Wall -Wextra -pedantic -Wno-language-extension-token -std=gnu11 -I../ext -Isrc -fPIE
LDFLAGS := $(LDFLAGS) -T $(LDSCRIPT)