summaryrefslogtreecommitdiffstats
path: root/include/utils/CallStack.h
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2011-10-19 20:32:43 -0700
committerAlex Ray <aray@google.com>2013-07-30 13:56:58 -0700
commitea45b01f9bc2d1ef1f8d97ca0480336d23e0aa97 (patch)
treef1a630a8a121c81bd7b153edf084cf9efef3d6cd /include/utils/CallStack.h
parent26ad34522e85b4427ec0ae662dd43eb78a2c5f95 (diff)
downloadsystem_core-ea45b01f9bc2d1ef1f8d97ca0480336d23e0aa97.zip
system_core-ea45b01f9bc2d1ef1f8d97ca0480336d23e0aa97.tar.gz
system_core-ea45b01f9bc2d1ef1f8d97ca0480336d23e0aa97.tar.bz2
Use libcorkscrew for stack unwinding.
Change-Id: Iee1ee5a2018ab8cfc1ce12ec2a124809245eaa02
Diffstat (limited to 'include/utils/CallStack.h')
-rw-r--r--include/utils/CallStack.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/include/utils/CallStack.h b/include/utils/CallStack.h
index 8817120..079e20c 100644
--- a/include/utils/CallStack.h
+++ b/include/utils/CallStack.h
@@ -21,6 +21,7 @@
#include <sys/types.h>
#include <utils/String8.h>
+#include <corkscrew/backtrace.h>
// ---------------------------------------------------------------------------
@@ -61,11 +62,8 @@ public:
size_t size() const { return mCount; }
private:
- // Internal helper function
- String8 toStringSingleLevel(const char* prefix, int32_t level) const;
-
- size_t mCount;
- const void* mStack[MAX_DEPTH];
+ size_t mCount;
+ backtrace_frame_t mStack[MAX_DEPTH];
};
}; // namespace android