Add exception handling unwind code.
Fix up the code to work with the map caching code.
This new functionality has not been tested thoroughly.
Change-Id: I8ef22b1125ee888c068f20d2917e2b20d903898e
diff --git a/Android.mk b/Android.mk
index c51c3f2..5b3c64c 100644
--- a/Android.mk
+++ b/Android.mk
@@ -32,6 +32,8 @@
# where x controls the verbosity (from 1 to 20).
debug := false
+common_conlyflags := \
+ -Wno-old-style-declaration \
common_cflags := \
-Wno-unused-parameter \
@@ -192,6 +194,26 @@
src/x86_64/Los-linux.c \
src/x86_64/setcontext.S \
+libunwind_src_files += \
+ src/unwind/Backtrace.c \
+ src/unwind/DeleteException.c \
+ src/unwind/FindEnclosingFunction.c \
+ src/unwind/ForcedUnwind.c \
+ src/unwind/GetBSP.c \
+ src/unwind/GetCFA.c \
+ src/unwind/GetDataRelBase.c \
+ src/unwind/GetGR.c \
+ src/unwind/GetIP.c \
+ src/unwind/GetIPInfo.c \
+ src/unwind/GetLanguageSpecificData.c \
+ src/unwind/GetRegionStart.c \
+ src/unwind/GetTextRelBase.c \
+ src/unwind/RaiseException.c \
+ src/unwind/Resume.c \
+ src/unwind/Resume_or_Rethrow.c \
+ src/unwind/SetGR.c \
+ src/unwind/SetIP.c \
+
libunwind_shared_libraries_target := \
libdl \