diff options
author | Christopher Ferris <cferris@google.com> | 2014-01-14 20:16:30 -0800 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2014-01-16 16:12:29 -0800 |
commit | 46756821c4fe238f12a6e5ea18c356398f8d8795 (patch) | |
tree | f0a17c7afec73b58608ffe0230fad7d5c8f6371b /libbacktrace/UnwindPtrace.h | |
parent | e847f429f43ae56aaa406697ca603c8469e2100b (diff) | |
download | core-46756821c4fe238f12a6e5ea18c356398f8d8795.tar.gz core-46756821c4fe238f12a6e5ea18c356398f8d8795.tar.bz2 core-46756821c4fe238f12a6e5ea18c356398f8d8795.zip |
Rewrite libbacktrace to be all C++.
This includes removing the map_info.c source and replacing it with the
BacktraceMap class to handle all map related code.
Change all callers of libbacktrace map functionality.
Also modify the corkscrew thread code so that it doesn't need to build
the map twice (once in the corkscrew format and once in the libbacktrace
format).
Change-Id: I32865a39f83a3dd6f958fc03c2759ba47d12382e
Diffstat (limited to 'libbacktrace/UnwindPtrace.h')
-rw-r--r-- | libbacktrace/UnwindPtrace.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libbacktrace/UnwindPtrace.h b/libbacktrace/UnwindPtrace.h index 781405bec..05375dd37 100644 --- a/libbacktrace/UnwindPtrace.h +++ b/libbacktrace/UnwindPtrace.h @@ -32,6 +32,8 @@ public: virtual std::string GetFunctionNameRaw(uintptr_t pc, uintptr_t* offset); + virtual BacktraceMap* CreateBacktraceMap(pid_t pid) { return new BacktraceMap(pid); } + private: unw_addr_space_t addr_space_; struct UPT_info* upt_info_; |