This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH]: alpha_frame_saved_pc()
- To: gdb-patches at sourceware dot cygnus dot com
- Subject: [PATCH]: alpha_frame_saved_pc()
- From: Michael Snyder <msnyder at cygnus dot com>
- Date: Mon, 17 Jul 2000 14:52:00 -0700
- Organization: Cygnus Solutions
Hey, I don't know who the alpha maintainer is!
Does this change look good?
--- alpha-tdep.c (alpha_frame_saved_pc):
***************
*** 381,386 ****
--- 509,515 ----
struct frame_info *frame;
{
alpha_extra_func_info_t proc_desc = frame->proc_desc;
+ CORE_ADDR saved_pc;
/* We have to get the saved pc from the sigcontext
if it is a signal handler frame. */
int pcreg = frame->signal_handler_caller ? PC_REGNUM :
frame->pc_reg;
***************
*** 388,394 ****
if (proc_desc && PROC_DESC_IS_DUMMY (proc_desc))
return read_memory_integer (frame->frame - 8, 8);
! return read_next_frame_reg (frame, pcreg);
}
CORE_ADDR
--- 517,526 ----
if (proc_desc && PROC_DESC_IS_DUMMY (proc_desc))
return read_memory_integer (frame->frame - 8, 8);
! saved_pc = read_next_frame_reg (frame, pcreg);
! if (saved_pc == 0)
! saved_pc = read_next_frame_reg (frame, RA_REGNUM);
! return saved_pc;
}
CORE_ADDR