1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "base/debug_util.h"
7 #include "base/platform_thread.h"
9 bool DebugUtil::suppress_dialogs_
= false;
11 bool DebugUtil::WaitForDebugger(int wait_seconds
, bool silent
) {
12 for (int i
= 0; i
< wait_seconds
* 10; ++i
) {
13 if (BeingDebugged()) {
18 PlatformThread::Sleep(100);
23 const void *const *StackTrace::Addresses(size_t* count
) {