OLD | NEW |
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 Loading... |
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 |
OLD | NEW |