From 46756821c4fe238f12a6e5ea18c356398f8d8795 Mon Sep 17 00:00:00 2001 From: Christopher Ferris Date: Tue, 14 Jan 2014 20:16:30 -0800 Subject: 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 --- libbacktrace/UnwindPtrace.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libbacktrace/UnwindPtrace.h') diff --git a/libbacktrace/UnwindPtrace.h b/libbacktrace/UnwindPtrace.h index 781405b..05375dd 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_; -- cgit v1.1