| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <ostream> |
| 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/memory/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 { |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 (*os) << "\t" << trace_[i] << "\n"; | 201 (*os) << "\t" << trace_[i] << "\n"; |
| 202 } | 202 } |
| 203 } else { | 203 } else { |
| 204 (*os) << "Backtrace:\n"; | 204 (*os) << "Backtrace:\n"; |
| 205 context->OutputTraceToStream(trace_, count_, os); | 205 context->OutputTraceToStream(trace_, count_, os); |
| 206 } | 206 } |
| 207 } | 207 } |
| 208 | 208 |
| 209 } // namespace debug | 209 } // namespace debug |
| 210 } // namespace base | 210 } // namespace base |
| OLD | NEW |