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 <android/log.h> | 7 #include <android/log.h> |
8 #include <unwind.h> | 8 #include <unwind.h> |
| 9 #include <ostream> |
9 | 10 |
10 #include "base/debug/proc_maps_linux.h" | 11 #include "base/debug/proc_maps_linux.h" |
11 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
12 #include "base/threading/thread_restrictions.h" | 13 #include "base/threading/thread_restrictions.h" |
13 | 14 |
14 #ifdef __LP64__ | 15 #ifdef __LP64__ |
15 #define FMT_ADDR "0x%016lx" | 16 #define FMT_ADDR "0x%016lx" |
16 #else | 17 #else |
17 #define FMT_ADDR "0x%08x" | 18 #define FMT_ADDR "0x%08x" |
18 #endif | 19 #endif |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 } else { | 120 } else { |
120 *os << "<unknown>"; | 121 *os << "<unknown>"; |
121 } | 122 } |
122 | 123 |
123 *os << "\n"; | 124 *os << "\n"; |
124 } | 125 } |
125 } | 126 } |
126 | 127 |
127 } // namespace debug | 128 } // namespace debug |
128 } // namespace base | 129 } // namespace base |
OLD | NEW |