core: add debug flags to use gdb
This commit is contained in:
parent
7ba3eead14
commit
2ba4037af2
2
.gitignore
vendored
2
.gitignore
vendored
@ -4,4 +4,4 @@ obj
|
|||||||
compile_commands.json
|
compile_commands.json
|
||||||
tags
|
tags
|
||||||
base_fonts
|
base_fonts
|
||||||
*.txt
|
*.log
|
||||||
|
4
Makefile
4
Makefile
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user