ANR: Reduce native-PC width to 8 characters.
Reduce output verbosity so that more useful data fits in ANR.
The native-PC is relative, which means that even on 64-bit arch,
only 8 characters are always sufficient.
Bug: 189881220
Test: Manually trigger ANR and check output.
Change-Id: I294313444f4594528acc82a287b623425b270216
diff --git a/runtime/native_stack_dump.cc b/runtime/native_stack_dump.cc
index 30b5ee6..86966f3 100644
--- a/runtime/native_stack_dump.cc
+++ b/runtime/native_stack_dump.cc
@@ -377,13 +377,9 @@
os << prefix << StringPrintf("#%02zu pc ", frame.num);
bool try_addr2line = false;
if (frame.map_info == nullptr) {
- os << StringPrintf(Is64BitInstructionSet(kRuntimeISA) ? "%016" PRIx64 " ???"
- : "%08" PRIx64 " ???",
- frame.pc);
+ os << StringPrintf("%08" PRIx64 " ???", frame.pc);
} else {
- os << StringPrintf(Is64BitInstructionSet(kRuntimeISA) ? "%016" PRIx64 " "
- : "%08" PRIx64 " ",
- frame.rel_pc);
+ os << StringPrintf("%08" PRIx64 " ", frame.rel_pc);
const std::shared_ptr<unwindstack::MapInfo>& map_info = frame.map_info;
if (map_info->name().empty()) {
os << StringPrintf("<anonymous:%" PRIx64 ">", map_info->start());