Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <windows.h> | 5 #include <windows.h> |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/debug_util.h" | 8 #include "base/debug_util.h" |
| 9 | 9 |
| 10 namespace { | 10 namespace { |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 94 // static | 94 // static |
| 95 bool DebugUtil::BeingDebugged() { | 95 bool DebugUtil::BeingDebugged() { |
| 96 return ::IsDebuggerPresent() != 0; | 96 return ::IsDebuggerPresent() != 0; |
| 97 } | 97 } |
| 98 | 98 |
| 99 // static | 99 // static |
| 100 void DebugUtil::BreakDebugger() { | 100 void DebugUtil::BreakDebugger() { |
| 101 __debugbreak(); | 101 __debugbreak(); |
| 102 } | 102 } |
| 103 | 103 |
| 104 // TODO(port): not implemented on Windows | |
| 105 StackTrace::StackTrace() { | |
| 106 } | |
| 107 | |
| 108 const void *const *StackTrace::Addresses(size_t* count) { | |
| 109 *count = 0; | |
| 110 return NULL; | |
| 111 } | |
| 112 | |
| 113 void PrintBacktrace() { | |
| 114 fprintf(stderr, "<printing stacktraces not implemented>\n"); | |
|
Evan Martin
2009/01/16 18:30:08
you don't need this anymore with the below
| |
| 115 NOTIMPLEMENTED(); | |
| 116 } | |
| OLD | NEW |