OSDN Git Service

libubacktrace: use -funwind-tables rather than -fexecptions
authorCarmelo Amoroso <carmelo.amoroso@st.com>
Thu, 22 Dec 2011 14:25:42 +0000 (15:25 +0100)
committerCarmelo Amoroso <carmelo.amoroso@st.com>
Thu, 22 Dec 2011 14:30:20 +0000 (15:30 +0100)
For backtrace to work is enough to use -funwind-tables instead
of -fexceptions.

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
libubacktrace/Makefile.in
libubacktrace/backtrace.c

index fe1fb64..a932f83 100644 (file)
@@ -26,8 +26,8 @@ libubacktrace_OUT := $(top_builddir)libubacktrace
 libubacktrace_SRC-y :=
 libubacktrace_SRC-$(UCLIBC_HAS_BACKTRACE) := backtrace.c backtracesyms.c backtracesymsfd.c
 
-# -fexections is required for backtrace to work using dwarf2
-CFLAGS-backtrace.c := -fexceptions
+# -funwind-tables is required for backtrace to work using dwarf2
+CFLAGS-backtrace.c := -funwind-tables
 
 
 libubacktrace_SRCS := $(addprefix $(libubacktrace_DIR)/,$(libubacktrace_SRC-y))
index 18b91b1..e5f5130 100644 (file)
@@ -2,7 +2,7 @@
  * Perform stack unwinding by using the _Unwind_Backtrace.
  *
  * User application that wants to use backtrace needs to be
- * compiled with -fexceptions option and -rdynamic to get full
+ * compiled with -funwind-tables option and -rdynamic to get full
  * symbols printed.
  *
  * Copyright (C) 2009, 2010 STMicroelectronics Ltd.