diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-12-11 20:35:43 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-12-11 20:35:43 +0000 |
commit | 95486978f313ccdbd6b9f33b0504fc189132475a (patch) | |
tree | b3036506d35952beb4af2a4b85e28d268960ecbd /gdb | |
parent | 321432c0c6c6849c0e924f65422fe4a92b1b6907 (diff) | |
download | gdb-95486978f313ccdbd6b9f33b0504fc189132475a.zip gdb-95486978f313ccdbd6b9f33b0504fc189132475a.tar.gz gdb-95486978f313ccdbd6b9f33b0504fc189132475a.tar.bz2 |
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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 9 | ||||
-rw-r--r-- | gdb/frame.c | 4 | ||||
-rw-r--r-- | gdb/frame.h | 6 | ||||
-rw-r--r-- | gdb/h8500-tdep.c | 2 | ||||
-rw-r--r-- | gdb/hppa-tdep.c | 12 | ||||
-rw-r--r-- | gdb/sparc-tdep.c | 11 |
6 files changed, 27 insertions, 17 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0d263ac..9e259bd 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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) diff --git a/gdb/frame.c b/gdb/frame.c index deee6c0..ca7f03e 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 62b1ce3..b9a933a 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 b717401..944a297 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 704d26d..2890746 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 1d07c03..45fce0b 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 |