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

Side by Side Diff: base/debug_util_posix.cc

Issue 3358014: Cleanup some duplicated includes. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 3 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/linux_util.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) 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_util.h" 5 #include "base/debug_util.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <fcntl.h> 8 #include <fcntl.h>
9 #include <stdio.h> 9 #include <stdio.h>
10 #include <stdlib.h> 10 #include <stdlib.h>
11 #include <sys/stat.h> 11 #include <sys/stat.h>
12 #include <sys/sysctl.h> 12 #include <sys/sysctl.h>
13 #include <sys/types.h> 13 #include <sys/types.h>
14 #include <unistd.h> 14 #include <unistd.h>
15 15
16 #include <string> 16 #include <string>
17 #include <vector> 17 #include <vector>
18 18
19 #if defined(__GLIBCXX__) 19 #if defined(__GLIBCXX__)
20 #include <cxxabi.h> 20 #include <cxxabi.h>
21 #endif 21 #endif
22 22
23 #if defined(OS_MACOSX) 23 #if defined(OS_MACOSX)
24 #include <AvailabilityMacros.h> 24 #include <AvailabilityMacros.h>
25 #endif 25 #endif
26 26
27 #include <iostream> 27 #include <iostream>
28 #include <string>
29 28
30 #include "base/basictypes.h" 29 #include "base/basictypes.h"
31 #include "base/compat_execinfo.h" 30 #include "base/compat_execinfo.h"
32 #include "base/eintr_wrapper.h" 31 #include "base/eintr_wrapper.h"
33 #include "base/logging.h" 32 #include "base/logging.h"
34 #include "base/safe_strerror_posix.h" 33 #include "base/safe_strerror_posix.h"
35 #include "base/scoped_ptr.h" 34 #include "base/scoped_ptr.h"
36 #include "base/string_piece.h" 35 #include "base/string_piece.h"
37 #include "base/stringprintf.h" 36 #include "base/stringprintf.h"
38 37
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 (*os) << "Backtrace:\n"; 296 (*os) << "Backtrace:\n";
298 } else { 297 } else {
299 (*os) << "Unable get symbols for backtrace (" << safe_strerror(errno) 298 (*os) << "Unable get symbols for backtrace (" << safe_strerror(errno)
300 << "). Dumping raw addresses in trace:\n"; 299 << "). Dumping raw addresses in trace:\n";
301 } 300 }
302 301
303 for (size_t i = 0; i < trace_strings.size(); ++i) { 302 for (size_t i = 0; i < trace_strings.size(); ++i) {
304 (*os) << "\t" << trace_strings[i] << "\n"; 303 (*os) << "\t" << trace_strings[i] << "\n";
305 } 304 }
306 } 305 }
OLDNEW
« no previous file with comments | « no previous file | base/linux_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698