| 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 #ifndef BASE_DEBUG_STACK_TRACE_H_ | 5 #ifndef BASE_DEBUG_STACK_TRACE_H_ |
| 6 #define BASE_DEBUG_STACK_TRACE_H_ | 6 #define BASE_DEBUG_STACK_TRACE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <iosfwd> | 10 #include <iosfwd> |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 | 87 |
| 88 // Copying and assignment are allowed with the default functions. | 88 // Copying and assignment are allowed with the default functions. |
| 89 | 89 |
| 90 // Gets an array of instruction pointer values. |*count| will be set to the | 90 // Gets an array of instruction pointer values. |*count| will be set to the |
| 91 // number of elements in the returned array. | 91 // number of elements in the returned array. |
| 92 const void* const* Addresses(size_t* count) const; | 92 const void* const* Addresses(size_t* count) const; |
| 93 | 93 |
| 94 // Prints the stack trace to stderr. | 94 // Prints the stack trace to stderr. |
| 95 void Print() const; | 95 void Print() const; |
| 96 | 96 |
| 97 #if !defined(__UCLIBC__) | 97 #if !defined(__UCLIBC__) & !defined(_AIX) |
| 98 // Resolves backtrace to symbols and write to stream. | 98 // Resolves backtrace to symbols and write to stream. |
| 99 void OutputToStream(std::ostream* os) const; | 99 void OutputToStream(std::ostream* os) const; |
| 100 #endif | 100 #endif |
| 101 | 101 |
| 102 // Resolves backtrace to symbols and returns as string. | 102 // Resolves backtrace to symbols and returns as string. |
| 103 std::string ToString() const; | 103 std::string ToString() const; |
| 104 | 104 |
| 105 private: | 105 private: |
| 106 #if defined(OS_WIN) | 106 #if defined(OS_WIN) |
| 107 void InitTrace(const _CONTEXT* context_record); | 107 void InitTrace(const _CONTEXT* context_record); |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 int base, | 201 int base, |
| 202 size_t padding); | 202 size_t padding); |
| 203 #endif // defined(OS_POSIX) && !defined(OS_ANDROID) | 203 #endif // defined(OS_POSIX) && !defined(OS_ANDROID) |
| 204 | 204 |
| 205 } // namespace internal | 205 } // namespace internal |
| 206 | 206 |
| 207 } // namespace debug | 207 } // namespace debug |
| 208 } // namespace base | 208 } // namespace base |
| 209 | 209 |
| 210 #endif // BASE_DEBUG_STACK_TRACE_H_ | 210 #endif // BASE_DEBUG_STACK_TRACE_H_ |
| OLD | NEW |