summaryrefslogtreecommitdiffstats
path: root/debuggerd/Android.mk
diff options
context:
space:
mode:
authorBen Cheng <bccheng@google.com>2009-12-17 12:50:58 -0800
committerBen Cheng <bccheng@google.com>2009-12-17 12:53:06 -0800
commitbdcff7d66ef8f6602e017d03cf4ffa57bac39b92 (patch)
treebb14c4e3fb025e293da1c613467a4472e2a6879d /debuggerd/Android.mk
parentb202c54aca4d84086a4dcc0f3c0bbc02d1dd9625 (diff)
downloadsystem_core-bdcff7d66ef8f6602e017d03cf4ffa57bac39b92.zip
system_core-bdcff7d66ef8f6602e017d03cf4ffa57bac39b92.tar.gz
system_core-bdcff7d66ef8f6602e017d03cf4ffa57bac39b92.tar.bz2
Dump VFP registers and status word when native app crashes.
Bug: 2226399 Caveat: d0/d1 appear to be clobbered by ptrace. It will be tracked by a new bug.
Diffstat (limited to 'debuggerd/Android.mk')
-rw-r--r--debuggerd/Android.mk14
1 files changed, 12 insertions, 2 deletions
diff --git a/debuggerd/Android.mk b/debuggerd/Android.mk
index b22e1a8..b86f2a5 100644
--- a/debuggerd/Android.mk
+++ b/debuggerd/Android.mk
@@ -14,13 +14,23 @@ LOCAL_STATIC_LIBRARIES := libcutils libc
include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS)
-LOCAL_SRC_FILES := crasher.c
+LOCAL_SRC_FILES := crasher.c
LOCAL_SRC_FILES += crashglue.S
-LOCAL_MODULE := crasher
+LOCAL_MODULE := crasher
LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
LOCAL_MODULE_TAGS := eng
#LOCAL_FORCE_STATIC_EXECUTABLE := true
LOCAL_SHARED_LIBRARIES := libcutils libc
include $(BUILD_EXECUTABLE)
+ifeq ($(TARGET_ARCH_VARIANT),armv7-a)
+include $(CLEAR_VARS)
+LOCAL_SRC_FILES := vfp-crasher.c vfp.S
+LOCAL_MODULE := vfp-crasher
+LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
+LOCAL_MODULE_TAGS := eng
+LOCAL_SHARED_LIBRARIES := libcutils libc
+include $(BUILD_EXECUTABLE)
+endif # TARGET_ARCH_VARIANT == armv7-a
+
endif # TARGET_ARCH == arm