diff options
author | Christopher Ferris <cferris@google.com> | 2017-07-27 09:29:18 -0700 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2017-08-03 10:15:44 -0700 |
commit | 6f3981c181677830c33093411b51ad6b0bf2e337 (patch) | |
tree | 35ea042367a3e9462346d78ba86e8be397b77edb /libbacktrace/include/backtrace/Backtrace.h | |
parent | 5c655991f51e63f4264619293b393a2c6bddb1fa (diff) | |
download | system_core-6f3981c181677830c33093411b51ad6b0bf2e337.tar.gz system_core-6f3981c181677830c33093411b51ad6b0bf2e337.tar.bz2 system_core-6f3981c181677830c33093411b51ad6b0bf2e337.zip |
Add support for the new unwind method.
Also add a comment to the GetElf function to indicate that it never returns
nullptr.
Also needed to add this library to the a million and one places that the vndk
has hard-coded this data.
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: Ib270665dcb7a7607075e36d88be76dbde6e2faa8
(cherry picked from commit dc4104b720c7fd2014ccfa9fa621d02df58a43c4)
Diffstat (limited to 'libbacktrace/include/backtrace/Backtrace.h')
-rw-r--r-- | libbacktrace/include/backtrace/Backtrace.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libbacktrace/include/backtrace/Backtrace.h b/libbacktrace/include/backtrace/Backtrace.h index b919e81c6..d67ea50c9 100644 --- a/libbacktrace/include/backtrace/Backtrace.h +++ b/libbacktrace/include/backtrace/Backtrace.h @@ -90,6 +90,8 @@ public: // If map is NULL, then create the map and manage it internally. // If map is not NULL, the map is still owned by the caller. static Backtrace* Create(pid_t pid, pid_t tid, BacktraceMap* map = NULL); + // Same as above, but uses a different underlying unwinder. + static Backtrace* CreateNew(pid_t pid, pid_t tid, BacktraceMap* map = NULL); // Create an offline Backtrace object that can be used to do an unwind without a process // that is still running. If cache_file is set to true, then elf information will be cached |