| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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> |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 #if defined(OS_MACOSX) | 24 #if defined(OS_MACOSX) |
| 25 #include <AvailabilityMacros.h> | 25 #include <AvailabilityMacros.h> |
| 26 #endif | 26 #endif |
| 27 | 27 |
| 28 #include <iostream> | 28 #include <iostream> |
| 29 | 29 |
| 30 #include "base/basictypes.h" | 30 #include "base/basictypes.h" |
| 31 #include "base/eintr_wrapper.h" | 31 #include "base/eintr_wrapper.h" |
| 32 #include "base/logging.h" | 32 #include "base/logging.h" |
| 33 #include "base/memory/scoped_ptr.h" |
| 33 #include "base/safe_strerror_posix.h" | 34 #include "base/safe_strerror_posix.h" |
| 34 #include "base/scoped_ptr.h" | |
| 35 #include "base/string_piece.h" | 35 #include "base/string_piece.h" |
| 36 #include "base/stringprintf.h" | 36 #include "base/stringprintf.h" |
| 37 | 37 |
| 38 #if defined(USE_SYMBOLIZE) | 38 #if defined(USE_SYMBOLIZE) |
| 39 #include "base/third_party/symbolize/symbolize.h" | 39 #include "base/third_party/symbolize/symbolize.h" |
| 40 #endif | 40 #endif |
| 41 | 41 |
| 42 namespace base { | 42 namespace base { |
| 43 namespace debug { | 43 namespace debug { |
| 44 | 44 |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 << "Dumping raw addresses in trace:\n"; | 190 << "Dumping raw addresses in trace:\n"; |
| 191 } | 191 } |
| 192 | 192 |
| 193 for (size_t i = 0; i < trace_strings.size(); ++i) { | 193 for (size_t i = 0; i < trace_strings.size(); ++i) { |
| 194 (*os) << "\t" << trace_strings[i] << "\n"; | 194 (*os) << "\t" << trace_strings[i] << "\n"; |
| 195 } | 195 } |
| 196 } | 196 } |
| 197 | 197 |
| 198 } // namespace debug | 198 } // namespace debug |
| 199 } // namespace base | 199 } // namespace base |
| OLD | NEW |