Build userspace with -fno-omit-frame-pointer (XCC)
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 21 May 2015 20:37:46 +0000 (16:37 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 4 Jun 2015 13:40:32 +0000 (09:40 -0400)
Until we have a decent debugger, we need to rely on the frame pointer to
create backtraces for user contexts.

Rebuild your toolchain.

Makefile
tools/compilers/gcc-glibc/glibc-2.19-akaros/sysdeps/akaros/Makefile

index 0e5044a..ef48311 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -349,7 +349,7 @@ export KBUILD_BUILTIN KBUILD_CHECKSRC
 
 CFLAGS_USER += -O2 -std=gnu99 -fno-stack-protector -fgnu89-inline
 CXXFLAGS_USER += -O2
-CFLAGS_USER_LIBS += -fPIC -static -fomit-frame-pointer -g
+CFLAGS_USER_LIBS += -fPIC -static -fno-omit-frame-pointer -g
 
 export CFLAGS_USER CXXFLAGS_USER CFLAGS_USER_LIBS
 
index f9d3d33..74e0b57 100644 (file)
@@ -1,6 +1,7 @@
 CPPFLAGS += -DHAVE_MMAP=1
 CPPFLAGS += -DHAVE_MUNMAP=1
 CPPFLAGS += -D_LIBC_REENTRANT=1
+CPPFLAGS += -fno-omit-frame-pointer
 
 # from nptl/sysdeps/unix/sysv/linux/Makefile
 CFLAGS-fork.c = $(libio-mtsafe)