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