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

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

Issue 6410105: run iwyu on base! Base URL: svn://svn.chromium.org/chrome/trunk/src/base
Patch Set: Created 9 years, 10 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
« no previous file with comments | « base/debug/stack_trace.cc ('k') | base/debug/trace_event.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/stack_trace.h"
6
7 #include <errno.h>
8 #include <execinfo.h> 5 #include <execinfo.h>
9 #include <fcntl.h> 6 #include <i686-apple-darwin10/bits/c++config.h>
7 #include <stddef.h>
10 #include <stdio.h> 8 #include <stdio.h>
11 #include <stdlib.h> 9 #include <string.h>
12 #include <sys/stat.h> 10 #include <sys/errno.h>
13 #include <sys/sysctl.h> 11 #include <algorithm>
14 #include <sys/types.h> 12 #include <ostream>
15 #include <unistd.h>
16
17 #include <string> 13 #include <string>
18 #include <vector> 14 #include <vector>
19 15
16 #include "base/debug/stack_trace.h"
17 #include "build/build_config.h"
18
20 #if defined(__GLIBCXX__) 19 #if defined(__GLIBCXX__)
21 #include <cxxabi.h> 20 #include <cxxabi.h>
22 #endif 21 #endif
23 22
24 #if defined(OS_MACOSX) 23 #if defined(OS_MACOSX)
25 #include <AvailabilityMacros.h> 24 #include <AvailabilityMacros.h>
26 #endif 25 #endif
27 26
28 #include <iostream> 27 #include <iostream>
29 28
30 #include "base/basictypes.h" 29 #include "base/basictypes.h"
31 #include "base/eintr_wrapper.h"
32 #include "base/logging.h"
33 #include "base/safe_strerror_posix.h" 30 #include "base/safe_strerror_posix.h"
34 #include "base/scoped_ptr.h" 31 #include "base/scoped_ptr.h"
35 #include "base/string_piece.h"
36 #include "base/stringprintf.h" 32 #include "base/stringprintf.h"
37 33
38 #if defined(USE_SYMBOLIZE) 34 #if defined(USE_SYMBOLIZE)
39 #include "base/third_party/symbolize/symbolize.h" 35 #include "base/third_party/symbolize/symbolize.h"
40 #endif 36 #endif
41 37
42 namespace base { 38 namespace base {
43 namespace debug { 39 namespace debug {
44 40
45 namespace { 41 namespace {
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 << "Dumping raw addresses in trace:\n"; 186 << "Dumping raw addresses in trace:\n";
191 } 187 }
192 188
193 for (size_t i = 0; i < trace_strings.size(); ++i) { 189 for (size_t i = 0; i < trace_strings.size(); ++i) {
194 (*os) << "\t" << trace_strings[i] << "\n"; 190 (*os) << "\t" << trace_strings[i] << "\n";
195 } 191 }
196 } 192 }
197 193
198 } // namespace debug 194 } // namespace debug
199 } // namespace base 195 } // namespace base
OLDNEW
« no previous file with comments | « base/debug/stack_trace.cc ('k') | base/debug/trace_event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698