From 7cd24045d6967c3ae0699fd58a98111ac9de0751 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Sun, 20 Jan 2013 01:31:07 +0100 Subject: [PATCH] m68k: add unwind tables to backtrace --- ports/ChangeLog.m68k | 4 ++++ ports/sysdeps/m68k/Makefile | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/ports/ChangeLog.m68k b/ports/ChangeLog.m68k index e470ed8..7e58a8a 100644 --- a/ports/ChangeLog.m68k +++ b/ports/ChangeLog.m68k @@ -1,3 +1,7 @@ +2013-01-20 Andreas Schwab + + * sysdeps/m68k/Makefile (CFLAGS-backtrace.c): Add -funwind-tables. + 2013-01-19 Andreas Schwab * sysdeps/m68k/backtrace.c: New file. diff --git a/ports/sysdeps/m68k/Makefile b/ports/sysdeps/m68k/Makefile index ef79830..c5b5318 100644 --- a/ports/sysdeps/m68k/Makefile +++ b/ports/sysdeps/m68k/Makefile @@ -26,8 +26,14 @@ asm-CPPFLAGS += $(m68k-syntax-flag) pic-ccflag = -fpic +ifeq ($(subdir),setjmp) # Make sure setjmp.c is compiled with a frame pointer CFLAGS-setjmp.c := -fno-omit-frame-pointer +endif + +ifeq ($(subdir),debug) +CFLAGS-backtrace.c += -funwind-tables +endif ifeq ($(subdir),elf) CFLAGS-rtld.c += -Wno-uninitialized -Wno-unused -- 2.7.4