summaryrefslogtreecommitdiffstats
path: root/base/debug_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/debug_util.cc')
-rw-r--r--base/debug_util.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/base/debug_util.cc b/base/debug_util.cc
index 497dbe7..2db3aa7 100644
--- a/base/debug_util.cc
+++ b/base/debug_util.cc
@@ -18,3 +18,9 @@ bool DebugUtil::WaitForDebugger(int wait_seconds, bool silent) {
return false;
}
+const void *const *StackTrace::Addresses(size_t* count) {
+ *count = trace_.size();
+ if (trace_.size())
+ return &trace_[0];
+ return NULL;
+}