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

Side by Side Diff: base/debug/stack_trace_win.cc

Issue 6714032: Move some files in base to base/memory. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: only base Created 9 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "base/debug/stack_trace.h" 5 #include "base/debug/stack_trace.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <dbghelp.h> 8 #include <dbghelp.h>
9 9
10 #include <iostream> 10 #include <iostream>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/singleton.h" 14 #include "base/memory/singleton.h"
15 #include "base/synchronization/lock.h" 15 #include "base/synchronization/lock.h"
16 16
17 namespace base { 17 namespace base {
18 namespace debug { 18 namespace debug {
19 19
20 namespace { 20 namespace {
21 21
22 // SymbolContext is a threadsafe singleton that wraps the DbgHelp Sym* family 22 // SymbolContext is a threadsafe singleton that wraps the DbgHelp Sym* family
23 // of functions. The Sym* family of functions may only be invoked by one 23 // of functions. The Sym* family of functions may only be invoked by one
24 // thread at a time. SymbolContext code may access a symbol server over the 24 // thread at a time. SymbolContext code may access a symbol server over the
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 (*os) << "\t" << trace_[i] << "\n"; 188 (*os) << "\t" << trace_[i] << "\n";
189 } 189 }
190 } else { 190 } else {
191 (*os) << "Backtrace:\n"; 191 (*os) << "Backtrace:\n";
192 context->OutputTraceToStream(trace_, count_, os); 192 context->OutputTraceToStream(trace_, count_, os);
193 } 193 }
194 } 194 }
195 195
196 } // namespace debug 196 } // namespace debug
197 } // namespace base 197 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698