summaryrefslogtreecommitdiff
path: root/debuggerd/Android.mk
diff options
context:
space:
mode:
authorMeng Hu <meng.hu@garmin.com>2009-11-05 16:10:50 -0600
committerGarmin Android technology group <android@garmin.com>2010-05-24 17:20:10 -0500
commitae7b91b68008ab09635a97a18e7d07a35e8404aa (patch)
tree13f464ac0a7092ce892a077ed09305b62df961b9 /debuggerd/Android.mk
parent93ac1559b8c7ad3125ddcd896082b030faadbbd4 (diff)
debuggerd: Show function names in tombstone backtraces
This change enables debuggerd to provide backtraces with function names in tombstone files and log messages. It does this by reading the image file that the address is found in, and parsing the dynamic symbol table to try to extract the symbol corresponding to the given address. This works best when "-Wl,-export-dynamic" is added to the LDFLAGS of each library and executable, because this will cause all symbols to be added to the dynamic symbol table. If this flag is not present, it will still work, but it will only be able to identify functions which are part of the external API of the library/executable. Change-Id: I618baaff9ed9143b7d1a1f302224e9f21d2b0626
Diffstat (limited to 'debuggerd/Android.mk')
-rw-r--r--debuggerd/Android.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/debuggerd/Android.mk b/debuggerd/Android.mk
index b22e1a81d..1dc842613 100644
--- a/debuggerd/Android.mk
+++ b/debuggerd/Android.mk
@@ -5,7 +5,7 @@ ifeq ($(TARGET_ARCH),arm)
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
-LOCAL_SRC_FILES:= debuggerd.c getevent.c unwind-arm.c pr-support.c utility.c
+LOCAL_SRC_FILES:= debuggerd.c getevent.c unwind-arm.c pr-support.c utility.c symbol_table.c
LOCAL_CFLAGS := -Wall
LOCAL_MODULE := debuggerd