8171129: [aarch64] hs_err logs do not print register mappings
authordrwhite
Wed, 14 Dec 2016 16:46:50 -0500
changeset 42880 f71e11a0567d
parent 42877 6cbcb55d5232
child 42881 5f53b4bc0c67
8171129: [aarch64] hs_err logs do not print register mappings Summary: Call print_location for contents of all registers. Reviewed-by: aph, dholmes
hotspot/src/os_cpu/linux_aarch64/vm/os_linux_aarch64.cpp
--- a/hotspot/src/os_cpu/linux_aarch64/vm/os_linux_aarch64.cpp	Mon Dec 19 13:09:25 2016 -0800
+++ b/hotspot/src/os_cpu/linux_aarch64/vm/os_linux_aarch64.cpp	Wed Dec 14 16:46:50 2016 -0500
@@ -606,8 +606,10 @@
   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();