diff options
author | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-08 23:53:53 +0000 |
---|---|---|
committer | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-08 23:53:53 +0000 |
commit | 0fe31f2ba217cceb277b670e2812667c3aee8e80 (patch) | |
tree | 3d2adea86b5d61d297318ea60c3faf1b1636c996 /base/debug_util.cc | |
parent | 2f66ed584522a2383f0f7193b264b3da7928eb82 (diff) | |
download | chromium_src-0fe31f2ba217cceb277b670e2812667c3aee8e80.zip chromium_src-0fe31f2ba217cceb277b670e2812667c3aee8e80.tar.gz chromium_src-0fe31f2ba217cceb277b670e2812667c3aee8e80.tar.bz2 |
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
Diffstat (limited to 'base/debug_util.cc')
-rw-r--r-- | base/debug_util.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |