From 0fe31f2ba217cceb277b670e2812667c3aee8e80 Mon Sep 17 00:00:00 2001 From: "maruel@chromium.org" Date: Tue, 8 Sep 2009 23:53:53 +0000 Subject: Print stack trace on exception in unit tests on Windows. Also remove std::vector<> from StackTrace to reduce heap usage during potential unstable execution. TEST=none BUG=http://crbug.com/20996 Review URL: http://codereview.chromium.org/201050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25685 0039d316-1c4b-4281-b951-d872f2087c98 --- base/debug_util.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'base/debug_util.cc') diff --git a/base/debug_util.cc b/base/debug_util.cc index 2db3aa7..2a6cac2 100644 --- a/base/debug_util.cc +++ b/base/debug_util.cc @@ -19,8 +19,8 @@ bool DebugUtil::WaitForDebugger(int wait_seconds, bool silent) { } const void *const *StackTrace::Addresses(size_t* count) { - *count = trace_.size(); - if (trace_.size()) - return &trace_[0]; + *count = count_; + if (count_) + return trace_; return NULL; } -- cgit v1.1