diff options
author | Christopher Ferris <cferris@google.com> | 2017-07-27 09:29:18 -0700 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2017-07-31 13:00:35 -0700 |
commit | 5b460d13a4c383fa6c9a416d64502430ab065209 (patch) | |
tree | d9a8238774e138208ecc47f507aef04c6ded7025 /libbacktrace/include/backtrace/BacktraceMap.h | |
parent | 6fa0884188dbc27b59b2fa3f86fb317bb1381252 (diff) | |
download | system_core-5b460d13a4c383fa6c9a416d64502430ab065209.tar.gz system_core-5b460d13a4c383fa6c9a416d64502430ab065209.tar.bz2 system_core-5b460d13a4c383fa6c9a416d64502430ab065209.zip |
Add support for the new unwind method.
Also add a comment to the GetElf function to indicate that it never returns
nullptr.
Bug: 23762183
Test: Built, nothing uses the new code.
Test: However, I did run backtrace_test using this code, and all tests pass.
Change-Id: I252b9c2497e2d3d94347dd6e506170bf50cbfe16
Diffstat (limited to 'libbacktrace/include/backtrace/BacktraceMap.h')
-rw-r--r-- | libbacktrace/include/backtrace/BacktraceMap.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libbacktrace/include/backtrace/BacktraceMap.h b/libbacktrace/include/backtrace/BacktraceMap.h index 02a50f738..963c34b64 100644 --- a/libbacktrace/include/backtrace/BacktraceMap.h +++ b/libbacktrace/include/backtrace/BacktraceMap.h @@ -52,6 +52,8 @@ public: // Passing a map created with uncached set to true to Backtrace::Create() // is unsupported. static BacktraceMap* Create(pid_t pid, bool uncached = false); + // Same as above, but is compatible with the new unwinder. + static BacktraceMap* CreateNew(pid_t pid, bool uncached = false); static BacktraceMap* Create(pid_t pid, const std::vector<backtrace_map_t>& maps); |