summaryrefslogtreecommitdiffstats
path: root/libbacktrace/BacktracePtrace.cpp
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2018-01-18 11:15:49 -0800
committerChristopher Ferris <cferris@google.com>2018-01-18 17:26:20 -0800
commit7937a36c8e24ef2dc5105a2a6b67f395934b2e2f (patch)
treec41fda20166f7166c5f17dc881da3ec5d8c3b25d /libbacktrace/BacktracePtrace.cpp
parent2c4f487dfbf1e1cce6e887bfef5e864f8222d07f (diff)
downloadsystem_core-7937a36c8e24ef2dc5105a2a6b67f395934b2e2f.tar.gz
system_core-7937a36c8e24ef2dc5105a2a6b67f395934b2e2f.tar.bz2
system_core-7937a36c8e24ef2dc5105a2a6b67f395934b2e2f.zip
Change all uintptr_t to uint64_t in API.
In order to support the offline unwinding properly, get rid of the usage of non-fixed type uintptr_t from all API calls. In addition, completely remove the old local and remote unwinding code that used libunwind. The next step will be to move the offline unwinding to the new unwinder. Bug: 65682279 Test: Ran unit tests for libbacktrace/debuggerd. Test: Ran debuggerd -b on a few arm and arm64 processes. Test: Ran crasher and crasher64 and verified tombstones look correct. Change-Id: Ib0c6cee3ad6785a102b74908a3d8e5e93e5c6b33
Diffstat (limited to 'libbacktrace/BacktracePtrace.cpp')
-rw-r--r--libbacktrace/BacktracePtrace.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libbacktrace/BacktracePtrace.cpp b/libbacktrace/BacktracePtrace.cpp
index fd8b7134f..bf6b16ff0 100644
--- a/libbacktrace/BacktracePtrace.cpp
+++ b/libbacktrace/BacktracePtrace.cpp
@@ -31,7 +31,7 @@
#include "thread_utils.h"
#if !defined(__APPLE__)
-static bool PtraceRead(pid_t tid, uintptr_t addr, word_t* out_value) {
+static bool PtraceRead(pid_t tid, uint64_t addr, word_t* out_value) {
// ptrace() returns -1 and sets errno when the operation fails.
// To disambiguate -1 from a valid result, we clear errno beforehand.
errno = 0;
@@ -43,7 +43,7 @@ static bool PtraceRead(pid_t tid, uintptr_t addr, word_t* out_value) {
}
#endif
-bool BacktracePtrace::ReadWord(uintptr_t ptr, word_t* out_value) {
+bool BacktracePtrace::ReadWord(uint64_t ptr, word_t* out_value) {
#if defined(__APPLE__)
BACK_LOGW("MacOS does not support reading from another pid.");
return false;
@@ -62,7 +62,7 @@ bool BacktracePtrace::ReadWord(uintptr_t ptr, word_t* out_value) {
#endif
}
-size_t BacktracePtrace::Read(uintptr_t addr, uint8_t* buffer, size_t bytes) {
+size_t BacktracePtrace::Read(uint64_t addr, uint8_t* buffer, size_t bytes) {
#if defined(__APPLE__)
BACK_LOGW("MacOS does not support reading from another pid.");
return 0;