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 <errno.h> | 7 #include <errno.h> |
8 #include <fcntl.h> | 8 #include <fcntl.h> |
9 #include <signal.h> | 9 #include <signal.h> |
| 10 #include <stddef.h> |
| 11 #include <stdint.h> |
10 #include <stdio.h> | 12 #include <stdio.h> |
11 #include <stdlib.h> | 13 #include <stdlib.h> |
12 #include <sys/param.h> | 14 #include <sys/param.h> |
13 #include <sys/stat.h> | 15 #include <sys/stat.h> |
14 #include <sys/types.h> | 16 #include <sys/types.h> |
15 #include <unistd.h> | 17 #include <unistd.h> |
16 | 18 |
17 #include <map> | 19 #include <map> |
18 #include <ostream> | 20 #include <ostream> |
19 #include <string> | 21 #include <string> |
20 #include <vector> | 22 #include <vector> |
21 | 23 |
22 #if defined(__GLIBCXX__) | 24 #if defined(__GLIBCXX__) |
23 #include <cxxabi.h> | 25 #include <cxxabi.h> |
24 #endif | 26 #endif |
25 #if !defined(__UCLIBC__) | 27 #if !defined(__UCLIBC__) |
26 #include <execinfo.h> | 28 #include <execinfo.h> |
27 #endif | 29 #endif |
28 | 30 |
29 #if defined(OS_MACOSX) | 31 #if defined(OS_MACOSX) |
30 #include <AvailabilityMacros.h> | 32 #include <AvailabilityMacros.h> |
31 #endif | 33 #endif |
32 | 34 |
33 #include "base/basictypes.h" | |
34 #include "base/debug/debugger.h" | 35 #include "base/debug/debugger.h" |
35 #include "base/debug/proc_maps_linux.h" | 36 #include "base/debug/proc_maps_linux.h" |
36 #include "base/logging.h" | 37 #include "base/logging.h" |
| 38 #include "base/macros.h" |
37 #include "base/memory/scoped_ptr.h" | 39 #include "base/memory/scoped_ptr.h" |
38 #include "base/memory/singleton.h" | 40 #include "base/memory/singleton.h" |
39 #include "base/numerics/safe_conversions.h" | 41 #include "base/numerics/safe_conversions.h" |
40 #include "base/posix/eintr_wrapper.h" | 42 #include "base/posix/eintr_wrapper.h" |
41 #include "base/strings/string_number_conversions.h" | 43 #include "base/strings/string_number_conversions.h" |
42 #include "build/build_config.h" | 44 #include "build/build_config.h" |
43 | 45 |
44 #if defined(USE_SYMBOLIZE) | 46 #if defined(USE_SYMBOLIZE) |
45 #include "base/third_party/symbolize/symbolize.h" | 47 #include "base/third_party/symbolize/symbolize.h" |
46 #endif | 48 #endif |
(...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
799 *ptr = *start; | 801 *ptr = *start; |
800 *start++ = ch; | 802 *start++ = ch; |
801 } | 803 } |
802 return buf; | 804 return buf; |
803 } | 805 } |
804 | 806 |
805 } // namespace internal | 807 } // namespace internal |
806 | 808 |
807 } // namespace debug | 809 } // namespace debug |
808 } // namespace base | 810 } // namespace base |
OLD | NEW |