aboutsummaryrefslogtreecommitdiff
path: root/gdb/hppa-tdep.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1994-11-05 06:56:43 +0000
committerJeff Law <law@redhat.com>1994-11-05 06:56:43 +0000
commitcb5f71282d27c28949f1cd8d888104c1a83af192 (patch)
tree389db8fa8a94a828eaccedbeaad99584f80e332d /gdb/hppa-tdep.c
parentbebe284408c9432464c96d8d80689066010dece9 (diff)
downloadgdb-cb5f71282d27c28949f1cd8d888104c1a83af192.zip
gdb-cb5f71282d27c28949f1cd8d888104c1a83af192.tar.gz
gdb-cb5f71282d27c28949f1cd8d888104c1a83af192.tar.bz2
* hppa-tdep.c (hppa_frame_find_saved_regs): Change "frame" to
"frame_info" throughout.
Diffstat (limited to 'gdb/hppa-tdep.c')
-rw-r--r--gdb/hppa-tdep.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c
index 3be29c9..384a67a 100644
--- a/gdb/hppa-tdep.c
+++ b/gdb/hppa-tdep.c
@@ -2020,7 +2020,7 @@ skip_prologue (pc)
void
hppa_frame_find_saved_regs (frame_info, frame_saved_regs)
- struct frame_info *frame;
+ struct frame_info *frame_info;
struct frame_saved_regs *frame_saved_regs;
{
CORE_ADDR pc;
@@ -2037,38 +2037,38 @@ hppa_frame_find_saved_regs (frame_info, frame_saved_regs)
examine the dummy code to determine locations of saved registers;
instead, let find_dummy_frame_regs fill in the correct offsets
for the saved registers. */
- if ((frame->pc >= frame->frame
- && frame->pc <= (frame->frame + CALL_DUMMY_LENGTH
- + 32 * 4 + (NUM_REGS - FP0_REGNUM) * 8
- + 6 * 4)))
- find_dummy_frame_regs (frame, frame_saved_regs);
+ if ((frame_info->pc >= frame_info->frame
+ && frame_info->pc <= (frame_info->frame + CALL_DUMMY_LENGTH
+ + 32 * 4 + (NUM_REGS - FP0_REGNUM) * 8
+ + 6 * 4)))
+ find_dummy_frame_regs (frame_info, frame_saved_regs);
/* Interrupt handlers are special too. They lay out the register
state in the exact same order as the register numbers in GDB. */
- if (pc_in_interrupt_handler (frame->pc))
+ if (pc_in_interrupt_handler (frame_info->pc))
{
for (i = 0; i < NUM_REGS; i++)
{
/* SP is a little special. */
if (i == SP_REGNUM)
frame_saved_regs->regs[SP_REGNUM]
- = read_memory_integer (frame->frame + SP_REGNUM * 4, 4);
+ = read_memory_integer (frame_info->frame + SP_REGNUM * 4, 4);
else
- frame_saved_regs->regs[i] = frame->frame + i * 4;
+ frame_saved_regs->regs[i] = frame_info->frame + i * 4;
}
return;
}
/* Handle signal handler callers. */
- if (frame->signal_handler_caller)
+ if (frame_info->signal_handler_caller)
{
- FRAME_FIND_SAVED_REGS_IN_SIGTRAMP (frame, frame_saved_regs);
+ FRAME_FIND_SAVED_REGS_IN_SIGTRAMP (frame_info, frame_saved_regs);
return;
}
/* Get the starting address of the function referred to by the PC
saved in frame. */
- pc = get_pc_function_start (frame->pc);
+ pc = get_pc_function_start (frame_info->pc);
/* Yow! */
u = find_unwind_entry (pc);
@@ -2101,7 +2101,7 @@ hppa_frame_find_saved_regs (frame_info, frame_saved_regs)
/* The frame always represents the value of %sp at entry to the
current function (and is thus equivalent to the "saved" stack
pointer. */
- frame_saved_regs->regs[SP_REGNUM] = frame->frame;
+ frame_saved_regs->regs[SP_REGNUM] = frame_info->frame;
/* Loop until we find everything of interest or hit a branch.
@@ -2133,7 +2133,7 @@ hppa_frame_find_saved_regs (frame_info, frame_saved_regs)
if (inst == 0x6bc23fd9)
{
save_rp = 0;
- frame_saved_regs->regs[RP_REGNUM] = frame->frame - 20;
+ frame_saved_regs->regs[RP_REGNUM] = frame_info->frame - 20;
}
/* Just note that we found the save of SP into the stack. The
@@ -2151,16 +2151,16 @@ hppa_frame_find_saved_regs (frame_info, frame_saved_regs)
/* stwm with a positive displacement is a *post modify*. */
if ((inst >> 26) == 0x1b
&& extract_14 (inst) >= 0)
- frame_saved_regs->regs[reg] = frame->frame;
+ frame_saved_regs->regs[reg] = frame_info->frame;
else
{
/* Handle code with and without frame pointers. */
if (u->Save_SP)
frame_saved_regs->regs[reg]
- = frame->frame + extract_14 (inst);
+ = frame_info->frame + extract_14 (inst);
else
frame_saved_regs->regs[reg]
- = frame->frame + (u->Total_frame_size << 3)
+ = frame_info->frame + (u->Total_frame_size << 3)
+ extract_14 (inst);
}
}
@@ -2192,13 +2192,13 @@ hppa_frame_find_saved_regs (frame_info, frame_saved_regs)
/* 1st HP CC FP register store. After this instruction
we've set enough state that the GCC and HPCC code are
both handled in the same manner. */
- frame_saved_regs->regs[reg + FP4_REGNUM + 4] = frame->frame;
+ frame_saved_regs->regs[reg + FP4_REGNUM + 4] = frame_info->frame;
fp_loc = 8;
}
else
{
frame_saved_regs->regs[reg + FP0_REGNUM + 4]
- = frame->frame + fp_loc;
+ = frame_info->frame + fp_loc;
fp_loc += 8;
}
}