diff --git a/src/kernel/Makefile b/src/kernel/Makefile index 4a4d99b..c7968f5 100644 --- a/src/kernel/Makefile +++ b/src/kernel/Makefile @@ -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 diff --git a/toolchain/gdbinit b/toolchain/gdbinit index 0ef559c..4c8a214 100644 --- a/toolchain/gdbinit +++ b/toolchain/gdbinit @@ -1,6 +1,7 @@ set prompt \033[31m(gdb) \033[0m set disassembly-flavor intel +file /opt/sysroot/kernel target remote :1234 define q