core: add debug flags to use gdb

This commit is contained in:
0x35c 2025-01-22 14:41:41 +01:00
parent 7ba3eead14
commit 2ba4037af2
2 changed files with 3 additions and 3 deletions

2
.gitignore vendored
View File

@ -4,4 +4,4 @@ obj
compile_commands.json compile_commands.json
tags tags
base_fonts base_fonts
*.txt *.log

View File

@ -1,7 +1,7 @@
NAME := bozOS NAME := bozOS
AS := i386-elf-as AS := i386-elf-as
ASFLAGS := ASFLAGS := -g
CC := i386-elf-gcc CC := i386-elf-gcc
CFLAGS := -std=gnu99 -ffreestanding -Wall -Wextra -iquotelibbozo/headers -iquoteheaders -MMD -fno-omit-frame-pointer -fstack-protector-all -g CFLAGS := -std=gnu99 -ffreestanding -Wall -Wextra -iquotelibbozo/headers -iquoteheaders -MMD -fno-omit-frame-pointer -fstack-protector-all -g
LD := $(CC) LD := $(CC)
@ -54,7 +54,7 @@ fast-run-iso: fast-iso
qemu-system-i386 -cdrom build/$(NAME).iso -vga std qemu-system-i386 -cdrom build/$(NAME).iso -vga std
debug: fast-iso debug: fast-iso
qemu-system-i386 -cdrom build/$(NAME).iso -vga std -d int -M smm=off 2> logs qemu-system-i386 -s -S -cdrom build/$(NAME).iso -vga std -D qemu.log -d in_asm,int -M smm=off
clean: clean:
make -C libbozo clean make -C libbozo clean