提交 ba7dde62 编写于 作者: Z zgu

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
上级 ef4f2ee9
...@@ -118,7 +118,7 @@ ExtendedPC os::fetch_frame_from_context(void* ucVoid, ...@@ -118,7 +118,7 @@ ExtendedPC os::fetch_frame_from_context(void* ucVoid,
*ret_sp = os::Linux::ucontext_get_sp(uc); *ret_sp = os::Linux::ucontext_get_sp(uc);
} }
if (ret_fp) { if (ret_fp) {
*ret_fp = os::Linux::ucontext_get_fp(uc); *ret_fp = (intptr_t*)NULL;
} }
} else { } else {
// construct empty ExtendedPC for return value checking // construct empty ExtendedPC for return value checking
...@@ -136,9 +136,8 @@ ExtendedPC os::fetch_frame_from_context(void* ucVoid, ...@@ -136,9 +136,8 @@ ExtendedPC os::fetch_frame_from_context(void* ucVoid,
frame os::fetch_frame_from_context(void* ucVoid) { frame os::fetch_frame_from_context(void* ucVoid) {
intptr_t* sp; intptr_t* sp;
intptr_t* fp; ExtendedPC epc = fetch_frame_from_context(ucVoid, &sp, NULL);
ExtendedPC epc = fetch_frame_from_context(ucVoid, &sp, &fp); return frame(sp, frame::unpatchable, epc.pc());
return frame(sp, fp, epc.pc());
} }
frame os::get_sender_for_C_frame(frame* fr) { frame os::get_sender_for_C_frame(frame* fr) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册