OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/memory/singleton.h" | 14 #include "base/memory/singleton.h" |
15 #include "base/path_service.h" | 15 #include "base/path_service.h" |
16 #include "base/process_util.h" | 16 #include "base/process/launch.h" |
17 #include "base/strings/string_util.h" | 17 #include "base/strings/string_util.h" |
18 #include "base/synchronization/lock.h" | 18 #include "base/synchronization/lock.h" |
19 #include "base/win/windows_version.h" | 19 #include "base/win/windows_version.h" |
20 | 20 |
21 namespace base { | 21 namespace base { |
22 namespace debug { | 22 namespace debug { |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
26 // Previous unhandled filter. Will be called if not NULL when we intercept an | 26 // Previous unhandled filter. Will be called if not NULL when we intercept an |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 (*os) << "\t" << trace_[i] << "\n"; | 262 (*os) << "\t" << trace_[i] << "\n"; |
263 } | 263 } |
264 } else { | 264 } else { |
265 (*os) << "Backtrace:\n"; | 265 (*os) << "Backtrace:\n"; |
266 context->OutputTraceToStream(trace_, count_, os); | 266 context->OutputTraceToStream(trace_, count_, os); |
267 } | 267 } |
268 } | 268 } |
269 | 269 |
270 } // namespace debug | 270 } // namespace debug |
271 } // namespace base | 271 } // namespace base |
OLD | NEW |