changeset 6796:53bff7520964

8050167: linux-sparcv9: hs_err file does not show any stack information Summary: Fixed creation of starting stack frame for stack walking in error handler Reviewed-by: coleenp, mikael
author zgu
date Mon, 21 Jul 2014 06:00:44 -0700
parents 564cca0427b0
children ec757fe48123
files src/os_cpu/linux_sparc/vm/os_linux_sparc.cpp
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/os_cpu/linux_sparc/vm/os_linux_sparc.cpp	Fri Jul 18 11:22:49 2014 -0400
+++ b/src/os_cpu/linux_sparc/vm/os_linux_sparc.cpp	Mon Jul 21 06:00:44 2014 -0700
@@ -118,7 +118,7 @@
       *ret_sp = os::Linux::ucontext_get_sp(uc);
     }
     if (ret_fp) {
-      *ret_fp = os::Linux::ucontext_get_fp(uc);
+      *ret_fp = (intptr_t*)NULL;
     }
   } else {
     // construct empty ExtendedPC for return value checking
@@ -136,9 +136,8 @@
 
 frame os::fetch_frame_from_context(void* ucVoid) {
   intptr_t* sp;
-  intptr_t* fp;
-  ExtendedPC epc = fetch_frame_from_context(ucVoid, &sp, &fp);
-  return frame(sp, fp, epc.pc());
+  ExtendedPC epc = fetch_frame_from_context(ucVoid, &sp, NULL);
+  return frame(sp, frame::unpatchable, epc.pc());
 }
 
 frame os::get_sender_for_C_frame(frame* fr) {