Skip to content

Commit 41df9cb

Browse files
committed
rt: Turn on frame pointers for stack walking
1 parent 9f3b12b commit 41df9cb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

mk/platform.mk

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,14 @@ endef
99
$(foreach t,$(CFG_TARGET_TRIPLES),$(eval $(call DEF_HOST_VAR,$(t))))
1010
$(foreach t,$(CFG_TARGET_TRIPLES),$(info cfg: host for $(t) is $(HOST_$(t))))
1111

12+
# FIXME: This appears to do nothing
1213
CFG_GCCISH_FLAGS += -fno-strict-aliasing
1314

15+
# FIXME: no-omit-frame-pointer is just so that task_start_wrapper
16+
# has a frame pointer and the stack walker can understand it. Turning off
17+
# frame pointers everywhere is overkill
18+
CFG_GCCISH_CFLAGS += -fno-omit-frame-pointer
19+
1420
# On Darwin, we need to run dsymutil so the debugging information ends
1521
# up in the right place. On other platforms, it automatically gets
1622
# embedded into the executable, so use a no-op command.

0 commit comments

Comments
 (0)