2002-12-11 Andrew Cagney <cagney@redhat.com>
* frame.c (deprecated_get_frame_saved_regs): Rename get_frame_saved_regs. * frame.h (deprecated_get_frame_saved_regs): Update declaration. * sparc-tdep.c: Update. * hppa-tdep.c: Update. * h8500-tdep.c: Update.
This commit is contained in:
parent
321432c0c6
commit
95486978f3
@ -1,3 +1,12 @@
|
||||
2002-12-11 Andrew Cagney <cagney@redhat.com>
|
||||
|
||||
* frame.c (deprecated_get_frame_saved_regs): Rename
|
||||
get_frame_saved_regs.
|
||||
* frame.h (deprecated_get_frame_saved_regs): Update declaration.
|
||||
* sparc-tdep.c: Update.
|
||||
* hppa-tdep.c: Update.
|
||||
* h8500-tdep.c: Update.
|
||||
|
||||
2002-12-11 Kevin Buettner <kevinb@redhat.com>
|
||||
|
||||
* gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
|
||||
|
@ -1181,8 +1181,8 @@ deprecated_set_frame_type (struct frame_info *frame, enum frame_type type)
|
||||
/* Find the addresses in which registers are saved in FRAME. */
|
||||
|
||||
void
|
||||
get_frame_saved_regs (struct frame_info *frame,
|
||||
struct frame_saved_regs *saved_regs_addr)
|
||||
deprecated_get_frame_saved_regs (struct frame_info *frame,
|
||||
struct frame_saved_regs *saved_regs_addr)
|
||||
{
|
||||
if (frame->saved_regs == NULL)
|
||||
{
|
||||
|
@ -478,9 +478,9 @@ extern void generic_save_dummy_frame_tos (CORE_ADDR sp);
|
||||
|
||||
#ifdef FRAME_FIND_SAVED_REGS
|
||||
/* XXX - deprecated */
|
||||
#define FRAME_INIT_SAVED_REGS(FI) get_frame_saved_regs (FI, NULL)
|
||||
extern void get_frame_saved_regs (struct frame_info *,
|
||||
struct frame_saved_regs *);
|
||||
#define FRAME_INIT_SAVED_REGS(FI) deprecated_get_frame_saved_regs (FI, NULL)
|
||||
extern void deprecated_get_frame_saved_regs (struct frame_info *,
|
||||
struct frame_saved_regs *);
|
||||
#endif
|
||||
|
||||
extern struct block *get_frame_block (struct frame_info *,
|
||||
|
@ -165,7 +165,7 @@ h8500_pop_frame (void)
|
||||
struct frame_saved_regs fsr;
|
||||
struct frame_info *frame = get_current_frame ();
|
||||
|
||||
get_frame_saved_regs (frame, &fsr);
|
||||
deprecated_get_frame_saved_regs (frame, &fsr);
|
||||
|
||||
for (regnum = 0; regnum < 8; regnum++)
|
||||
{
|
||||
|
@ -916,7 +916,7 @@ hppa_frame_saved_pc (struct frame_info *frame)
|
||||
{
|
||||
struct frame_saved_regs saved_regs;
|
||||
|
||||
get_frame_saved_regs (frame->next, &saved_regs);
|
||||
deprecated_get_frame_saved_regs (frame->next, &saved_regs);
|
||||
if (read_memory_integer (saved_regs.regs[FLAGS_REGNUM],
|
||||
TARGET_PTR_BIT / 8) & 0x2)
|
||||
{
|
||||
@ -956,7 +956,7 @@ hppa_frame_saved_pc (struct frame_info *frame)
|
||||
{
|
||||
struct frame_saved_regs saved_regs;
|
||||
|
||||
get_frame_saved_regs (frame->next, &saved_regs);
|
||||
deprecated_get_frame_saved_regs (frame->next, &saved_regs);
|
||||
if (read_memory_integer (saved_regs.regs[FLAGS_REGNUM],
|
||||
TARGET_PTR_BIT / 8) & 0x2)
|
||||
{
|
||||
@ -1228,7 +1228,7 @@ frame_chain (struct frame_info *frame)
|
||||
/* The unwind entry claims that r3 is saved here. However,
|
||||
in optimized code, GCC often doesn't actually save r3.
|
||||
We'll discover this if we look at the prologue. */
|
||||
get_frame_saved_regs (tmp_frame, &saved_regs);
|
||||
deprecated_get_frame_saved_regs (tmp_frame, &saved_regs);
|
||||
saved_regs_frame = tmp_frame;
|
||||
|
||||
/* If we have an address for r3, that's good. */
|
||||
@ -1277,7 +1277,7 @@ frame_chain (struct frame_info *frame)
|
||||
system call has a variable sized stack frame. */
|
||||
|
||||
if (tmp_frame != saved_regs_frame)
|
||||
get_frame_saved_regs (tmp_frame, &saved_regs);
|
||||
deprecated_get_frame_saved_regs (tmp_frame, &saved_regs);
|
||||
|
||||
/* Abominable hack. */
|
||||
if (current_target.to_has_execution == 0
|
||||
@ -1312,7 +1312,7 @@ frame_chain (struct frame_info *frame)
|
||||
tmp_frame = tmp_frame->next;
|
||||
|
||||
if (tmp_frame != saved_regs_frame)
|
||||
get_frame_saved_regs (tmp_frame, &saved_regs);
|
||||
deprecated_get_frame_saved_regs (tmp_frame, &saved_regs);
|
||||
|
||||
/* Abominable hack. See above. */
|
||||
if (current_target.to_has_execution == 0
|
||||
@ -1535,7 +1535,7 @@ hppa_pop_frame (void)
|
||||
double freg_buffer;
|
||||
|
||||
fp = get_frame_base (frame);
|
||||
get_frame_saved_regs (frame, &fsr);
|
||||
deprecated_get_frame_saved_regs (frame, &fsr);
|
||||
|
||||
#ifndef NO_PC_SPACE_QUEUE_RESTORE
|
||||
if (fsr.regs[IPSW_REGNUM]) /* Restoring a call dummy frame */
|
||||
|
@ -1210,11 +1210,12 @@ sparc_frame_find_saved_regs (struct frame_info *fi, CORE_ADDR *saved_regs_addr)
|
||||
|
||||
/* Discard from the stack the innermost frame, restoring all saved registers.
|
||||
|
||||
Note that the values stored in fsr by get_frame_saved_regs are *in
|
||||
the context of the called frame*. What this means is that the i
|
||||
regs of fsr must be restored into the o regs of the (calling) frame that
|
||||
we pop into. We don't care about the output regs of the calling frame,
|
||||
since unless it's a dummy frame, it won't have any output regs in it.
|
||||
Note that the values stored in fsr by
|
||||
deprecated_get_frame_saved_regs are *in the context of the called
|
||||
frame*. What this means is that the i regs of fsr must be restored
|
||||
into the o regs of the (calling) frame that we pop into. We don't
|
||||
care about the output regs of the calling frame, since unless it's
|
||||
a dummy frame, it won't have any output regs in it.
|
||||
|
||||
We never have to bother with %l (local) regs, since the called routine's
|
||||
locals get tossed, and the calling routine's locals are already saved
|
||||
|
Loading…
Reference in New Issue
Block a user