summaryrefslogtreecommitdiffstats
path: root/libbacktrace/BacktraceThread.h
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2014-01-14 20:16:30 -0800
committerChristopher Ferris <cferris@google.com>2014-01-16 16:12:29 -0800
commit46756821c4fe238f12a6e5ea18c356398f8d8795 (patch)
treef0a17c7afec73b58608ffe0230fad7d5c8f6371b /libbacktrace/BacktraceThread.h
parente847f429f43ae56aaa406697ca603c8469e2100b (diff)
downloadsystem_core-46756821c4fe238f12a6e5ea18c356398f8d8795.zip
system_core-46756821c4fe238f12a6e5ea18c356398f8d8795.tar.gz
system_core-46756821c4fe238f12a6e5ea18c356398f8d8795.tar.bz2
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/BacktraceThread.h')
-rw-r--r--libbacktrace/BacktraceThread.h6
1 files changed, 3 insertions, 3 deletions
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);