From: Andrew Cagney Date: Wed, 11 Dec 2002 20:35:43 +0000 (+0000) Subject: 2002-12-11 Andrew Cagney X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=95486978f313ccdbd6b9f33b0504fc189132475a;p=binutils-gdb.git 2002-12-11 Andrew Cagney * 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0d263aca6f5..9e259bd526e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,12 @@ +2002-12-11 Andrew Cagney + + * 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 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME) diff --git a/gdb/frame.c b/gdb/frame.c index deee6c0d2c6..ca7f03e1f6d 100644 --- a/gdb/frame.c +++ b/gdb/frame.c @@ -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) { diff --git a/gdb/frame.h b/gdb/frame.h index 62b1ce32ab8..b9a933ae193 100644 --- a/gdb/frame.h +++ b/gdb/frame.h @@ -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 *, diff --git a/gdb/h8500-tdep.c b/gdb/h8500-tdep.c index b717401c6fb..944a2976fd9 100644 --- a/gdb/h8500-tdep.c +++ b/gdb/h8500-tdep.c @@ -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++) { diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c index 704d26d2aa9..2890746b5f2 100644 --- a/gdb/hppa-tdep.c +++ b/gdb/hppa-tdep.c @@ -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 */ diff --git a/gdb/sparc-tdep.c b/gdb/sparc-tdep.c index 1d07c03ce68..45fce0b2191 100644 --- a/gdb/sparc-tdep.c +++ b/gdb/sparc-tdep.c @@ -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