From 89e7c22fc4f61faf7163925e498211ef9b34af45 Mon Sep 17 00:00:00 2001 From: Derek White Date: Wed, 14 Dec 2016 16:46:50 -0500 Subject: [PATCH] 8171129: [aarch64] hs_err logs do not print register mappings Call print_location for contents of all registers. Reviewed-by: aph, dholmes --- hotspot/src/os_cpu/linux_aarch64/vm/os_linux_aarch64.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hotspot/src/os_cpu/linux_aarch64/vm/os_linux_aarch64.cpp b/hotspot/src/os_cpu/linux_aarch64/vm/os_linux_aarch64.cpp index 21d185d5d70..5d10f02423e 100644 --- a/hotspot/src/os_cpu/linux_aarch64/vm/os_linux_aarch64.cpp +++ b/hotspot/src/os_cpu/linux_aarch64/vm/os_linux_aarch64.cpp @@ -606,8 +606,10 @@ void os::print_context(outputStream *st, const void *context) { st->print(" TRAPNO=" INTPTR_FORMAT, uc->uc_mcontext.gregs[REG_TRAPNO]); st->cr(); #else - for (int r = 0; r < 31; r++) - st->print_cr( "R%d=" INTPTR_FORMAT, r, (size_t)uc->uc_mcontext.regs[r]); + for (int r = 0; r < 31; r++) { + st->print("R%-2d=", r); + print_location(st, uc->uc_mcontext.regs[r]); + } #endif st->cr();