android_system_core/libbacktrace
Yabin Cui c4a480e423 libbacktraceoffline: choose correct debug section for a given address.
1. In /system/lib/libart.so, the ranges of functions covered by .eh_frame
and .ARM.exidx overlap with each other. Currently, we don't check .eh_frame
if the address is in the ranges of functions covered by .ARM.exidx. It leads
to a wrong unwinding result. So change the logic to first try .eh_frame and
.debug_frame, if it fails, then try .ARM.exidx.
2. Add test for Item 1.

Bug: http://b/35251937
Test: run backtrace_test.

Change-Id: Ic412705617c300bc69b4ece178cc2e1bb3eb765b
2017-02-10 17:51:16 -08:00
..
testdata libbacktraceoffline: choose correct debug section for a given address. 2017-02-10 17:51:16 -08:00
Android.bp Remove obsolete mentions of LLVM_HOST_BUILD_MK 2016-12-17 13:34:05 -08:00
Backtrace.cpp Don\'t demangle symbol names. am: fbbc744 am: 0edda64 am: 9bf0b81 2016-03-23 20:52:26 +00:00
BacktraceCurrent.cpp
BacktraceCurrent.h
BacktraceLog.h liblog: use log/log.h when utilizing ALOG macros 2017-01-11 09:31:15 -08:00
BacktraceMap.cpp liblog: use log/log.h when utilizing ALOG macros 2017-01-11 09:31:15 -08:00
BacktraceOffline.cpp libbacktraceoffline: choose correct debug section for a given address. 2017-02-10 17:51:16 -08:00
BacktraceOffline.h libbacktrace_offline: support .ARM.exidx. 2016-12-07 10:25:33 -08:00
BacktracePtrace.cpp Revert "Use process_vm_readv to read memory." 2016-11-10 23:19:30 +00:00
BacktracePtrace.h
GetPss.cpp Fix misc-macro-parentheses warnings in adb, debuggerd, libbacktrace. 2016-05-18 15:53:15 -07:00
GetPss.h
ThreadEntry.cpp
ThreadEntry.h
UnwindCurrent.cpp
UnwindCurrent.h
UnwindMap.cpp Fix race condition updating local map data. 2016-06-16 23:28:11 -07:00
UnwindMap.h Fix google-explicit-constructor warnings in system/core. 2016-07-26 11:26:01 -07:00
UnwindPtrace.cpp
UnwindPtrace.h
backtrace_offline_test.cpp libbacktraceoffline: choose correct debug section for a given address. 2017-02-10 17:51:16 -08:00
backtrace_test.cpp Fix race condition updating local map data. 2016-06-16 23:28:11 -07:00
backtrace_testlib.c libbacktrace_offline: support .ARM.exidx. 2016-12-07 10:25:33 -08:00
thread_utils.c
thread_utils.h