From 2ba4037af22db5a33bc6ca7b8acc26609c02ee47 Mon Sep 17 00:00:00 2001 From: 0x35c Date: Wed, 22 Jan 2025 14:41:41 +0100 Subject: [PATCH] core: add debug flags to use gdb --- .gitignore | 2 +- Makefile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 253e3b4..d3b0216 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,4 @@ obj compile_commands.json tags base_fonts -*.txt +*.log diff --git a/Makefile b/Makefile index b79145d..be6dc07 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ NAME := bozOS AS := i386-elf-as -ASFLAGS := +ASFLAGS := -g CC := i386-elf-gcc CFLAGS := -std=gnu99 -ffreestanding -Wall -Wextra -iquotelibbozo/headers -iquoteheaders -MMD -fno-omit-frame-pointer -fstack-protector-all -g LD := $(CC) @@ -54,7 +54,7 @@ fast-run-iso: fast-iso qemu-system-i386 -cdrom build/$(NAME).iso -vga std 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: make -C libbozo clean