summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRobert Morris <[email protected]>2019-06-06 13:54:03 -0400
committerRobert Morris <[email protected]>2019-06-06 13:54:03 -0400
commit91ba81110acd3163f7de3580b677eece0c57f5e7 (patch)
tree670536a7f365e75282048b5447a107338b677642 /Makefile
parent8607051b5fc79fffa319b913b19e99bc5b90e063 (diff)
downloadxv6-labs-91ba81110acd3163f7de3580b677eece0c57f5e7.tar.gz
xv6-labs-91ba81110acd3163f7de3580b677eece0c57f5e7.tar.bz2
xv6-labs-91ba81110acd3163f7de3580b677eece0c57f5e7.zip
gdb backtraces: -ggdb, -fno-omit-frame-pointer, BSIZE=1024
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 7415076..731a157 100644
--- a/Makefile
+++ b/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