| 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 <execinfo.h> | 8 #include <execinfo.h> |
| 9 #include <fcntl.h> | 9 #include <fcntl.h> |
| 10 #include <signal.h> | 10 #include <signal.h> |
| 11 #include <stdio.h> | 11 #include <stdio.h> |
| 12 #include <stdlib.h> | 12 #include <stdlib.h> |
| 13 #include <sys/param.h> | 13 #include <sys/param.h> |
| 14 #include <sys/stat.h> | 14 #include <sys/stat.h> |
| 15 #include <sys/types.h> | 15 #include <sys/types.h> |
| 16 #include <unistd.h> | 16 #include <unistd.h> |
| 17 | 17 |
| 18 #include <string> | 18 #include <string> |
| 19 #include <vector> | 19 #include <vector> |
| 20 | 20 |
| 21 #if defined(__GLIBCXX__) | 21 #if defined(__GLIBCXX__) |
| 22 #include <cxxabi.h> | 22 #include <cxxabi.h> |
| 23 #endif | 23 #endif |
| 24 | 24 |
| 25 #if defined(OS_MACOSX) | 25 #if defined(OS_MACOSX) |
| 26 #include <AvailabilityMacros.h> | 26 #include <AvailabilityMacros.h> |
| 27 #endif | 27 #endif |
| 28 | 28 |
| 29 #include "base/basictypes.h" | 29 #include "base/basictypes.h" |
| 30 #include "base/eintr_wrapper.h" | |
| 31 #include "base/logging.h" | 30 #include "base/logging.h" |
| 32 #include "base/memory/scoped_ptr.h" | 31 #include "base/memory/scoped_ptr.h" |
| 32 #include "base/posix/eintr_wrapper.h" |
| 33 #include "base/safe_strerror_posix.h" | 33 #include "base/safe_strerror_posix.h" |
| 34 #include "base/string_piece.h" | 34 #include "base/string_piece.h" |
| 35 #include "base/stringprintf.h" | 35 #include "base/stringprintf.h" |
| 36 | 36 |
| 37 #if defined(USE_SYMBOLIZE) | 37 #if defined(USE_SYMBOLIZE) |
| 38 #include "base/third_party/symbolize/symbolize.h" | 38 #include "base/third_party/symbolize/symbolize.h" |
| 39 #endif | 39 #endif |
| 40 | 40 |
| 41 namespace base { | 41 namespace base { |
| 42 namespace debug { | 42 namespace debug { |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 << "Dumping raw addresses in trace:\n"; | 253 << "Dumping raw addresses in trace:\n"; |
| 254 } | 254 } |
| 255 | 255 |
| 256 for (size_t i = 0; i < trace_strings.size(); ++i) { | 256 for (size_t i = 0; i < trace_strings.size(); ++i) { |
| 257 (*os) << "\t" << trace_strings[i] << "\n"; | 257 (*os) << "\t" << trace_strings[i] << "\n"; |
| 258 } | 258 } |
| 259 } | 259 } |
| 260 | 260 |
| 261 } // namespace debug | 261 } // namespace debug |
| 262 } // namespace base | 262 } // namespace base |
| OLD | NEW |