gdb backtraces: -ggdb, -fno-omit-frame-pointer, BSIZE=1024
This commit is contained in:
parent
8607051b5f
commit
91ba81110a
6 changed files with 47 additions and 6 deletions
4
Makefile
4
Makefile
|
@ -50,7 +50,7 @@ OBJCOPY = $(TOOLPREFIX)objcopy
|
|||
OBJDUMP = $(TOOLPREFIX)objdump
|
||||
|
||||
# CFLAGS = -fno-pic -static -fno-builtin -fno-strict-aliasing -Wall -MD -ggdb -Werror -fno-omit-frame-pointer -O
|
||||
CFLAGS = -Wall -Werror -O
|
||||
CFLAGS = -Wall -Werror -O -fno-omit-frame-pointer -ggdb
|
||||
CFLAGS += -mcmodel=medany
|
||||
CFLAGS += -ffreestanding -fno-common -nostdlib -mno-relax
|
||||
CFLAGS += $(shell $(CC) -fno-stack-protector -E -x c /dev/null >/dev/null 2>&1 && echo -fno-stack-protector)
|
||||
|
@ -153,7 +153,7 @@ QEMUGDB = $(shell if $(QEMU) -help | grep -q '^-gdb'; \
|
|||
then echo "-gdb tcp::$(GDBPORT)"; \
|
||||
else echo "-s -p $(GDBPORT)"; fi)
|
||||
ifndef CPUS
|
||||
CPUS := 1
|
||||
CPUS := 3
|
||||
endif
|
||||
QEMUOPTS = -machine virt -kernel kernel -m 3G -smp $(CPUS) -nographic
|
||||
QEMUOPTS += -initrd fs.img
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue