summaryrefslogtreecommitdiff
path: root/debuggerd/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 /debuggerd/Android.mk
parent5f2d00b0677cbe9ad42ea0394def0a51aef7bdda (diff)
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 'debuggerd/Android.mk')
-rw-r--r--debuggerd/Android.mk12
1 files changed, 9 insertions, 3 deletions
diff --git a/debuggerd/Android.mk b/debuggerd/Android.mk
index f1273637b..2a516fbed 100644
--- a/debuggerd/Android.mk
+++ b/debuggerd/Android.mk
@@ -5,9 +5,15 @@ ifneq ($(filter arm x86,$(TARGET_ARCH)),)
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
-LOCAL_SRC_FILES:= debuggerd.c utility.c getevent.c $(TARGET_ARCH)/machine.c
-
-LOCAL_CFLAGS := -Wall -Werror -std=gnu99
+LOCAL_SRC_FILES:= \
+ backtrace.c \
+ debuggerd.c \
+ getevent.c \
+ tombstone.c \
+ utility.c \
+ $(TARGET_ARCH)/machine.c
+
+LOCAL_CFLAGS := -Wall -Wno-unused-parameter -std=gnu99
LOCAL_MODULE := debuggerd
ifeq ($(ARCH_ARM_HAVE_VFP),true)