summaryrefslogtreecommitdiffstats
path: root/base/debug_util.cc
diff options
context:
space:
mode:
authormark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-16 22:06:19 +0000
committermark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-16 22:06:19 +0000
commitd1fc4379e70ad0c3bb1158413ac0687cc5d8570a (patch)
tree63788d21656ab24adc77fb2c7e83ca9d9b7b3a69 /base/debug_util.cc
parentb6626dd455c2fd13da2e3244a5124b253324d948 (diff)
downloadchromium_src-d1fc4379e70ad0c3bb1158413ac0687cc5d8570a.zip
chromium_src-d1fc4379e70ad0c3bb1158413ac0687cc5d8570a.tar.gz
chromium_src-d1fc4379e70ad0c3bb1158413ac0687cc5d8570a.tar.bz2
"Port" StackTrace to Mac
Review URL: http://codereview.chromium.org/18173 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8229 0039d316-1c4b-4281-b951-d872f2087c98
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;
+}