提交 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,
*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 @@ ExtendedPC os::fetch_frame_from_context(void* ucVoid,
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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册