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> | 10 #include <stddef.h> |
11 #include <stdint.h> | 11 #include <stdint.h> |
12 #include <stdio.h> | 12 #include <stdio.h> |
13 #include <stdlib.h> | 13 #include <stdlib.h> |
14 #include <sys/param.h> | 14 #include <sys/param.h> |
15 #include <sys/stat.h> | 15 #include <sys/stat.h> |
16 #include <sys/types.h> | 16 #include <sys/types.h> |
17 #include <unistd.h> | 17 #include <unistd.h> |
18 | 18 |
19 #include <map> | 19 #include <map> |
20 #include <ostream> | 20 #include <ostream> |
21 #include <string> | 21 #include <string> |
22 #include <vector> | 22 #include <vector> |
23 | 23 |
| 24 #include "base/memory/free_deleter.h" |
| 25 |
24 #if defined(__GLIBCXX__) | 26 #if defined(__GLIBCXX__) |
25 #include <cxxabi.h> | 27 #include <cxxabi.h> |
26 #endif | 28 #endif |
27 #if !defined(__UCLIBC__) | 29 #if !defined(__UCLIBC__) |
28 #include <execinfo.h> | 30 #include <execinfo.h> |
29 #endif | 31 #endif |
30 | 32 |
31 #if defined(OS_MACOSX) | 33 #if defined(OS_MACOSX) |
32 #include <AvailabilityMacros.h> | 34 #include <AvailabilityMacros.h> |
33 #endif | 35 #endif |
(...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
803 *ptr = *start; | 805 *ptr = *start; |
804 *start++ = ch; | 806 *start++ = ch; |
805 } | 807 } |
806 return buf; | 808 return buf; |
807 } | 809 } |
808 | 810 |
809 } // namespace internal | 811 } // namespace internal |
810 | 812 |
811 } // namespace debug | 813 } // namespace debug |
812 } // namespace base | 814 } // namespace base |
OLD | NEW |