summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Ferris2018-01-20 02:59:11 -0600
committerChristopher Ferris2018-01-20 02:59:11 -0600
commite36afb04297cdadf7969a901b809879a72875a8d (patch)
tree30fa51e2930d0f5a6f26332aaa6f6539c13396c6 /debuggerd
parentfd0e0db391f9fab1f8dea7e658769d25f6a81784 (diff)
downloadplatform-system-core-e36afb04297cdadf7969a901b809879a72875a8d.tar.gz
platform-system-core-e36afb04297cdadf7969a901b809879a72875a8d.tar.xz
platform-system-core-e36afb04297cdadf7969a901b809879a72875a8d.zip
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')
-rw-r--r--debuggerd/libdebuggerd/tombstone.cpp2
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*
144 } else { 144 } else {
145 line += " "; 145 line += " ";
146 } 146 }
147 line += StringPrintf("%" PRIPTR " %" PRIxPTR, *sp, stack_data[i]); 147 line += StringPrintf("%" PRIPTR " %" PRIPTR, *sp, static_cast<uint64_t>(stack_data[i]));
148 148
149 backtrace_map_t map; 149 backtrace_map_t map;
150 backtrace_map->FillIn(stack_data[i], &map); 150 backtrace_map->FillIn(stack_data[i], &map);