summaryrefslogtreecommitdiffstats
path: root/libcutils/Android.mk
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2012-06-06 16:25:03 -0700
committerJeff Brown <jeffbrown@google.com>2012-06-08 13:29:23 -0700
commit053b865412d1982ad1dc0e840898d82527deeb99 (patch)
tree2312442a46a05d24230e832700ad1300af9a2d9f /libcutils/Android.mk
parent5f2d00b0677cbe9ad42ea0394def0a51aef7bdda (diff)
downloadsystem_core-053b865412d1982ad1dc0e840898d82527deeb99.zip
system_core-053b865412d1982ad1dc0e840898d82527deeb99.tar.gz
system_core-053b865412d1982ad1dc0e840898d82527deeb99.tar.bz2
Enhance native stack dumps.
Provides a new mechanism for dumpstate (while running as root) to request that debuggerd dump the stacks of native processes that we care about in bug reports. In this mode, the backtrace is formatted to look similar to a Dalvik backtrace. Moved the tombstone generating code into a separate file to make it easier to maintain. Fixed a bug where sometimes the stack traces would be incomplete because we were not waiting for each thread to stop after issuing PTRACE_ATTACH, only the main thread. So sometimes we were missing traces for some threads. Refactored the logging code to prevent accidentally writing data to logcat when explicitly dumping a tombstone or backtrace from the console. Only root or system server can request to dump backtraces but only root can dump tombstones. Bug: 6615693 Change-Id: Ib3edcc16f9f3a687e414e3f2d250d9500566123b
Diffstat (limited to 'libcutils/Android.mk')
-rw-r--r--libcutils/Android.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/libcutils/Android.mk b/libcutils/Android.mk
index 0d49165..5c227b6 100644
--- a/libcutils/Android.mk
+++ b/libcutils/Android.mk
@@ -116,7 +116,15 @@ libcutils_c_includes := bionic/libc/private
include $(CLEAR_VARS)
LOCAL_MODULE := libcutils
-LOCAL_SRC_FILES := $(commonSources) ashmem-dev.c mq.c android_reboot.c partition_utils.c uevent.c qtaguid.c klog.c
+LOCAL_SRC_FILES := $(commonSources) \
+ android_reboot.c \
+ ashmem-dev.c \
+ debugger.c \
+ klog.c \
+ mq.c \
+ partition_utils.c \
+ qtaguid.c \
+ uevent.c
ifeq ($(TARGET_ARCH),arm)
LOCAL_SRC_FILES += arch-arm/memset32.S