Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3144)

Unified Diff: base/debug_util.cc

Issue 18173: "Port" StackTrace to Mac (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/debug_util_posix.cc » ('j') | base/debug_util_posix.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/debug_util.cc
===================================================================
--- base/debug_util.cc (revision 8223)
+++ base/debug_util.cc (working copy)
@@ -18,3 +18,9 @@
return false;
}
+const void *const *StackTrace::Addresses(size_t* count) {
+ *count = trace_.size();
+ if (trace_.size())
+ return &trace_[0];
+ return NULL;
+}
« no previous file with comments | « no previous file | base/debug_util_posix.cc » ('j') | base/debug_util_posix.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698