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

Side by Side Diff: base/debug_util_win.cc

Issue 18303: Add StackTrace debugging utility class. (Closed)
Patch Set: Addressing comments 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 unified diff | Download patch
« base/debug_util_posix.cc ('K') | « base/debug_util_posix.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« base/debug_util_posix.cc ('K') | « base/debug_util_posix.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698