summaryrefslogtreecommitdiffstats
path: root/libbacktrace/include/backtrace/Backtrace.h
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2019-04-11 19:45:35 -0700
committerChristopher Ferris <cferris@google.com>2019-04-15 14:14:56 -0700
commit82866421b8b357b18c71e2b560c81c95ab925934 (patch)
treeb30925b10e3417d5d21a6012a52c81b724ee3c3d /libbacktrace/include/backtrace/Backtrace.h
parent1dd53f763b4deb122215d5d426b794da02bc2ac3 (diff)
downloadsystem_core-82866421b8b357b18c71e2b560c81c95ab925934.tar.gz
system_core-82866421b8b357b18c71e2b560c81c95ab925934.tar.bz2
system_core-82866421b8b357b18c71e2b560c81c95ab925934.zip
Fix pc/function name for signal handler frame.
This refactors the step function slightly to split it up into distinct pieces since the code needs to handle a signal handler versus normal step slightly differently. Add a new error for an invalid elf. Modify libbacktrace code to handle new error code. Bug: 130302288 Test: libbacktrace/libunwindstack unit tests. Change-Id: I3fb9b00c02d2cf2cc5911541bba0346c6f39b8e6 Merged-In: I3fb9b00c02d2cf2cc5911541bba0346c6f39b8e6 (cherry picked from commit d11ed86d65e870c5ea0d4918693376d474dbfe7d)
Diffstat (limited to 'libbacktrace/include/backtrace/Backtrace.h')
-rw-r--r--libbacktrace/include/backtrace/Backtrace.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libbacktrace/include/backtrace/Backtrace.h b/libbacktrace/include/backtrace/Backtrace.h
index 10e790b3d..404e7e8ab 100644
--- a/libbacktrace/include/backtrace/Backtrace.h
+++ b/libbacktrace/include/backtrace/Backtrace.h
@@ -64,6 +64,8 @@ enum BacktraceUnwindErrorCode : uint32_t {
BACKTRACE_UNWIND_ERROR_UNWIND_INFO,
// Unwind information stopped due to sp/pc repeating.
BACKTRACE_UNWIND_ERROR_REPEATED_FRAME,
+ // Unwind information stopped due to invalid elf.
+ BACKTRACE_UNWIND_ERROR_INVALID_ELF,
};
struct BacktraceUnwindError {