| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <execinfo.h> | 8 #include <execinfo.h> |
| 9 #include <fcntl.h> | 9 #include <fcntl.h> |
| 10 #include <stdio.h> | 10 #include <stdio.h> |
| 11 #include <stdlib.h> | 11 #include <stdlib.h> |
| 12 #include <sys/param.h> | 12 #include <sys/param.h> |
| 13 #include <sys/stat.h> | 13 #include <sys/stat.h> |
| 14 #if defined(OS_OPENBSD) || defined(OS_FREEBSD) |
| 14 #include <sys/sysctl.h> | 15 #include <sys/sysctl.h> |
| 16 #endif |
| 15 #include <sys/types.h> | 17 #include <sys/types.h> |
| 16 #include <unistd.h> | 18 #include <unistd.h> |
| 17 | 19 |
| 18 #include <string> | 20 #include <string> |
| 19 #include <vector> | 21 #include <vector> |
| 20 | 22 |
| 21 #if defined(__GLIBCXX__) | 23 #if defined(__GLIBCXX__) |
| 22 #include <cxxabi.h> | 24 #include <cxxabi.h> |
| 23 #endif | 25 #endif |
| 24 | 26 |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 << "Dumping raw addresses in trace:\n"; | 193 << "Dumping raw addresses in trace:\n"; |
| 192 } | 194 } |
| 193 | 195 |
| 194 for (size_t i = 0; i < trace_strings.size(); ++i) { | 196 for (size_t i = 0; i < trace_strings.size(); ++i) { |
| 195 (*os) << "\t" << trace_strings[i] << "\n"; | 197 (*os) << "\t" << trace_strings[i] << "\n"; |
| 196 } | 198 } |
| 197 } | 199 } |
| 198 | 200 |
| 199 } // namespace debug | 201 } // namespace debug |
| 200 } // namespace base | 202 } // namespace base |
| OLD | NEW |