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/BacktraceThread.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libbacktrace/BacktraceThread.h') diff --git a/libbacktrace/BacktraceThread.h b/libbacktrace/BacktraceThread.h index a4b6ecb..cae496a 100644 --- a/libbacktrace/BacktraceThread.h +++ b/libbacktrace/BacktraceThread.h @@ -22,12 +22,12 @@ #include "Backtrace.h" -typedef enum { +enum state_e { STATE_WAITING = 0, STATE_DUMPING, STATE_DONE, STATE_CANCEL, -} state_e; +}; class BacktraceThreadInterface; @@ -71,7 +71,7 @@ public: // subclass both. BacktraceThread( BacktraceImpl* impl, BacktraceThreadInterface* thread_intf, pid_t tid, - backtrace_map_info_t* map_info); + BacktraceMap* map); virtual ~BacktraceThread(); virtual bool Unwind(size_t num_ignore_frames); -- cgit v1.1