This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[RFA]: alpha_frame_saved_pc
- To: gdb-patches at sourceware dot cygnus dot com
- Subject: [RFA]: alpha_frame_saved_pc
- From: Michael Snyder <msnyder at cygnus dot com>
- Date: Fri, 21 Jul 2000 17:00:21 -0700
- Newsgroups: cygnus.patches.gdb
- Organization: Cygnus Solutions
Hello, this is a submission I was given for alpha.
I don't know the alpha very well. Can someone who
knows it a little better let me know if this change
is OK? Thanks.
--- 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