| 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 #include <sys/sysctl.h> | |
| 15 #include <sys/types.h> | 14 #include <sys/types.h> |
| 16 #include <unistd.h> | 15 #include <unistd.h> |
| 17 | 16 |
| 18 #include <string> | 17 #include <string> |
| 19 #include <vector> | 18 #include <vector> |
| 20 | 19 |
| 21 #if defined(__GLIBCXX__) | 20 #if defined(__GLIBCXX__) |
| 22 #include <cxxabi.h> | 21 #include <cxxabi.h> |
| 23 #endif | 22 #endif |
| 24 | 23 |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 << "Dumping raw addresses in trace:\n"; | 190 << "Dumping raw addresses in trace:\n"; |
| 192 } | 191 } |
| 193 | 192 |
| 194 for (size_t i = 0; i < trace_strings.size(); ++i) { | 193 for (size_t i = 0; i < trace_strings.size(); ++i) { |
| 195 (*os) << "\t" << trace_strings[i] << "\n"; | 194 (*os) << "\t" << trace_strings[i] << "\n"; |
| 196 } | 195 } |
| 197 } | 196 } |
| 198 | 197 |
| 199 } // namespace debug | 198 } // namespace debug |
| 200 } // namespace base | 199 } // namespace base |
| OLD | NEW |