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

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

Issue 2053953002: Add chrome_crash_reporter_client_win.cc to the source file list for chrome_elf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments Created 4 years, 6 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
« no previous file with comments | « no previous file | base/files/file_path.cc » ('j') | 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) 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 #include <stddef.h> 9 #include <stddef.h>
10 10
11 #include <iostream> 11 #include <iostream>
12 #include <memory>
12 13
14 #include "base/files/file_path.h"
13 #include "base/logging.h" 15 #include "base/logging.h"
14 #include "base/macros.h" 16 #include "base/macros.h"
15 #include "base/memory/singleton.h" 17 #include "base/memory/singleton.h"
16 #include "base/process/launch.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"
20 19
21 namespace base { 20 namespace base {
22 namespace debug { 21 namespace debug {
23 22
24 namespace { 23 namespace {
25 24
26 // Previous unhandled filter. Will be called if not NULL when we intercept an 25 // Previous unhandled filter. Will be called if not NULL when we intercept an
27 // exception. Only used in unit tests. 26 // exception. Only used in unit tests.
28 LPTOP_LEVEL_EXCEPTION_FILTER g_previous_filter = NULL; 27 LPTOP_LEVEL_EXCEPTION_FILTER g_previous_filter = NULL;
29 28
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 (*os) << "\t" << trace_[i] << "\n"; 284 (*os) << "\t" << trace_[i] << "\n";
286 } 285 }
287 } else { 286 } else {
288 (*os) << "Backtrace:\n"; 287 (*os) << "Backtrace:\n";
289 context->OutputTraceToStream(trace_, count_, os); 288 context->OutputTraceToStream(trace_, count_, os);
290 } 289 }
291 } 290 }
292 291
293 } // namespace debug 292 } // namespace debug
294 } // namespace base 293 } // namespace base
OLDNEW
« no previous file with comments | « no previous file | base/files/file_path.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698