Commit 4e93b8c2 authored by Mathieu Maret's avatar Mathieu Maret

make:fix debug target

parent 7633e546
......@@ -2,9 +2,9 @@
CPPFLAGS = -MMD
AS=nasm
ASFLAGS += -f elf32
LDFLAGS += -g -m32 -nostdlib -static -fno-common -fno-use-cxa-atexit -fno-exceptions -fno-non-call-exceptions -fno-weak -fno-rtti -fno-stack-protector
CFLAGS += -g -m32 -Wall -Wextra -Werror -ffreestanding -fno-exceptions -fno-pie -fno-stack-protector
CXXFLAGS += -g -m32 -Wall -Wextra -Werror -ffreestanding -fno-exceptions -fno-rtti -fno-pie
LDFLAGS += -m32 -nostdlib -static -fno-common -fno-use-cxa-atexit -fno-exceptions -fno-non-call-exceptions -fno-weak -fno-rtti -fno-stack-protector
CFLAGS += -m32 -Wall -Wextra -Werror -ffreestanding -fno-exceptions -fno-pie -fno-stack-protector
CXXFLAGS += -m32 -Wall -Wextra -Werror -ffreestanding -fno-exceptions -fno-rtti -fno-pie
SUBDIRS := core drivers tests
......@@ -44,8 +44,10 @@ self_test: clean kernel
test:kernel
qemu-system-x86_64 -kernel $<
debug: CFLAGS += -g -Og
debug: CXXFLAGS += -g -Og
debug:kernel kernel.sym
qemu-system-x86_64 -s -S -kernel kernel
qemu-system-x86_64 -s -S -kernel kernel&
gdb -s kernel.sym -ex "target remote localhost:1234"
clean:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment