Make debugging work

This commit is contained in:
Thomas Lovén 2017-10-24 22:47:01 +02:00
parent de73851481
commit a0f3953365
2 changed files with 3 additions and 1 deletions

View File

@ -9,7 +9,8 @@ OBJ := $(patsubst %, %.o, $(basename $(SRC)))
DEP := $(OBJ:.o=.d)
CFLAGS ?= -Wall -Wextra
CFLAGS += -ffreestanding
CFLAGS += -ffreestanding -ggdb -O0
ASFLAGS += -ggdb
CPPFLAGS += -I include
all: kernel

View File

@ -1,6 +1,7 @@
set prompt \033[31m(gdb) \033[0m
set disassembly-flavor intel
file /opt/sysroot/kernel
target remote :1234
define q