From 41df9cbb448ab7b4fd352d64776cdfd02ed83a56 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Mon, 11 Jun 2012 22:44:16 -0700 Subject: [PATCH] rt: Turn on frame pointers for stack walking --- mk/platform.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mk/platform.mk b/mk/platform.mk index 6208cb546386..61526f1f559a 100644 --- a/mk/platform.mk +++ b/mk/platform.mk @@ -9,8 +9,14 @@ endef $(foreach t,$(CFG_TARGET_TRIPLES),$(eval $(call DEF_HOST_VAR,$(t)))) $(foreach t,$(CFG_TARGET_TRIPLES),$(info cfg: host for $(t) is $(HOST_$(t)))) +# FIXME: This appears to do nothing CFG_GCCISH_FLAGS += -fno-strict-aliasing +# FIXME: no-omit-frame-pointer is just so that task_start_wrapper +# has a frame pointer and the stack walker can understand it. Turning off +# frame pointers everywhere is overkill +CFG_GCCISH_CFLAGS += -fno-omit-frame-pointer + # On Darwin, we need to run dsymutil so the debugging information ends # up in the right place. On other platforms, it automatically gets # embedded into the executable, so use a no-op command.