diff options
author | Christopher Ferris <cferris@google.com> | 2018-01-20 00:59:11 -0800 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2018-01-20 00:59:11 -0800 |
commit | e36afb04297cdadf7969a901b809879a72875a8d (patch) | |
tree | 30fa51e2930d0f5a6f26332aaa6f6539c13396c6 /debuggerd/libdebuggerd | |
parent | fd0e0db391f9fab1f8dea7e658769d25f6a81784 (diff) |
Fix regression caused by libbacktrace API change.
The stack dump was not printing leading zeros for data after the
change to remove uintptr_t types from the libbacktrace API.
Bug: 65682279
Test: Created an arm tombstone and an arm64 tombstone and verified
Test: that the stack data has leading zeros.
Change-Id: I1fbec2c4fa7c8b0fab18894c5628d18c5a580299
Diffstat (limited to 'debuggerd/libdebuggerd')
-rw-r--r-- | debuggerd/libdebuggerd/tombstone.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debuggerd/libdebuggerd/tombstone.cpp b/debuggerd/libdebuggerd/tombstone.cpp index 320e5dbb9..7d8560213 100644 --- a/debuggerd/libdebuggerd/tombstone.cpp +++ b/debuggerd/libdebuggerd/tombstone.cpp @@ -144,7 +144,7 @@ static void dump_stack_segment(log_t* log, BacktraceMap* backtrace_map, Memory* } else { line += " "; } - line += StringPrintf("%" PRIPTR " %" PRIxPTR, *sp, stack_data[i]); + line += StringPrintf("%" PRIPTR " %" PRIPTR, *sp, static_cast<uint64_t>(stack_data[i])); backtrace_map_t map; backtrace_map->FillIn(stack_data[i], &map); |