diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-09-25 20:44:02 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-09-25 20:44:02 +0000 |
commit | 1b1d37945b97f73da1c3f1bf0548aa476eca3b4f (patch) | |
tree | 4b914a9753354b495fe50a3ee4a300c663a1a720 /gdb/cris-tdep.c | |
parent | ecc2063b6cb68ff49fcaf954aa825591c772c886 (diff) | |
download | binutils-gdb-1b1d37945b97f73da1c3f1bf0548aa476eca3b4f.tar.gz |
2003-09-25 Andrew Cagney <cagney@redhat.com>
* frame.h (deprecated_frame_saved_regs): Rename
get_frame_saved_regs.
* cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
* mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
* ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
* s390-tdep.c, sh64-tdep.c, stack.c: Update.
* v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
Diffstat (limited to 'gdb/cris-tdep.c')
-rw-r--r-- | gdb/cris-tdep.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/gdb/cris-tdep.c b/gdb/cris-tdep.c index 89f54cf2ea3..a3cfe601982 100644 --- a/gdb/cris-tdep.c +++ b/gdb/cris-tdep.c @@ -501,10 +501,10 @@ cris_examine (CORE_ADDR ip, CORE_ADDR limit, struct frame_info *fi, /* We only want to know the end of the prologue when fi->saved_regs == 0. When the saved registers are allocated full information is required. */ - if (get_frame_saved_regs (fi)) + if (deprecated_get_frame_saved_regs (fi)) { for (regno = 0; regno < NUM_REGS; regno++) - get_frame_saved_regs (fi)[regno] = 0; + deprecated_get_frame_saved_regs (fi)[regno] = 0; } /* Find the prologue instructions. */ @@ -676,34 +676,34 @@ cris_examine (CORE_ADDR ip, CORE_ADDR limit, struct frame_info *fi, /* We only want to know the end of the prologue when fi->saved_regs == 0. */ - if (!get_frame_saved_regs (fi)) + if (!deprecated_get_frame_saved_regs (fi)) return ip; if (have_fp) { - get_frame_saved_regs (fi)[DEPRECATED_FP_REGNUM] = get_frame_base (fi); + deprecated_get_frame_saved_regs (fi)[DEPRECATED_FP_REGNUM] = get_frame_base (fi); /* Calculate the addresses. */ for (regno = regsave; regno >= 0; regno--) { - get_frame_saved_regs (fi)[regno] = get_frame_base (fi) - val; + deprecated_get_frame_saved_regs (fi)[regno] = get_frame_base (fi) - val; val -= 4; } if (get_frame_extra_info (fi)->leaf_function) { /* Set the register SP to contain the stack pointer of the caller. */ - get_frame_saved_regs (fi)[SP_REGNUM] = get_frame_base (fi) + 4; + deprecated_get_frame_saved_regs (fi)[SP_REGNUM] = get_frame_base (fi) + 4; } else { /* Set the register SP to contain the stack pointer of the caller. */ - get_frame_saved_regs (fi)[SP_REGNUM] = get_frame_base (fi) + 8; + deprecated_get_frame_saved_regs (fi)[SP_REGNUM] = get_frame_base (fi) + 8; /* Set the register SRP to contain the return address of the caller. */ - get_frame_saved_regs (fi)[SRP_REGNUM] = get_frame_base (fi) + 4; + deprecated_get_frame_saved_regs (fi)[SRP_REGNUM] = get_frame_base (fi) + 4; } } return ip; @@ -1151,7 +1151,7 @@ cris_frame_init_saved_regs (struct frame_info *fi) int frameless_p = 0; /* Has this frame's registers already been initialized? */ - if (get_frame_saved_regs (fi)) + if (deprecated_get_frame_saved_regs (fi)) return; frame_saved_regs_zalloc (fi); @@ -1161,7 +1161,7 @@ cris_frame_init_saved_regs (struct frame_info *fi) /* I don't see this ever happening, considering the context in which cris_frame_init_saved_regs is called (always when we're not in a dummy frame). */ - memcpy (get_frame_saved_regs (fi), dummy_regs, SIZEOF_FRAME_SAVED_REGS); + memcpy (deprecated_get_frame_saved_regs (fi), dummy_regs, SIZEOF_FRAME_SAVED_REGS); } else { @@ -1219,11 +1219,11 @@ cris_init_extra_frame_info (int fromleaf, struct frame_info *fi) /* Check fromleaf/frameless_function_invocation. (FIXME) */ - if (get_frame_saved_regs (fi)[SRP_REGNUM] != 0) + if (deprecated_get_frame_saved_regs (fi)[SRP_REGNUM] != 0) { /* SRP was saved on the stack; non-leaf function. */ get_frame_extra_info (fi)->return_pc = - read_memory_integer (get_frame_saved_regs (fi)[SRP_REGNUM], + read_memory_integer (deprecated_get_frame_saved_regs (fi)[SRP_REGNUM], REGISTER_RAW_SIZE (SRP_REGNUM)); } else @@ -1527,30 +1527,30 @@ cris_pop_frame (void) after SP was saved. */ for (regno = 0; regno < DEPRECATED_FP_REGNUM; regno++) { - if (get_frame_saved_regs (fi)[regno]) + if (deprecated_get_frame_saved_regs (fi)[regno]) { write_register (regno, - read_memory_integer (get_frame_saved_regs (fi)[regno], 4)); + read_memory_integer (deprecated_get_frame_saved_regs (fi)[regno], 4)); } } - if (get_frame_saved_regs (fi)[DEPRECATED_FP_REGNUM]) + if (deprecated_get_frame_saved_regs (fi)[DEPRECATED_FP_REGNUM]) { /* Pop the frame pointer (R8). It was pushed before SP was saved. */ write_register (DEPRECATED_FP_REGNUM, - read_memory_integer (get_frame_saved_regs (fi)[DEPRECATED_FP_REGNUM], 4)); + read_memory_integer (deprecated_get_frame_saved_regs (fi)[DEPRECATED_FP_REGNUM], 4)); stack_offset += 4; /* Not a leaf function. */ - if (get_frame_saved_regs (fi)[SRP_REGNUM]) + if (deprecated_get_frame_saved_regs (fi)[SRP_REGNUM]) { /* SRP was pushed before SP was saved. */ stack_offset += 4; } /* Restore the SP and adjust for R8 and (possibly) SRP. */ - write_register (SP_REGNUM, get_frame_saved_regs (fi)[DEPRECATED_FP_REGNUM] + stack_offset); + write_register (SP_REGNUM, deprecated_get_frame_saved_regs (fi)[DEPRECATED_FP_REGNUM] + stack_offset); } else { |