summaryrefslogtreecommitdiff
path: root/gdb/sparc-tdep.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-09-28 22:32:20 +0000
committerAndrew Cagney <cagney@redhat.com>2003-09-28 22:32:20 +0000
commit7a1cb31ba477d636d06b55d9305640fef1209840 (patch)
tree34483c22b733c88e270e10dd58c212cb62177524 /gdb/sparc-tdep.c
parentaf6df0159e297e714f26a24815df7ab26ed5743d (diff)
downloadgdb-7a1cb31ba477d636d06b55d9305640fef1209840.tar.gz
2003-09-28 Andrew Cagney <cagney@redhat.com>
* frame.c (frame_read_unsigned_register): Delete function. * frame.h (frame_read_unsigned_register): Delete declaration. * sparc-tdep.c (sparc_init_extra_frame_info): Use get_frame_register_unsigned. (sparc_frame_saved_pc, sparc_pop_frame): Ditto. * m68hc11-tdep.c (m68hc11_print_register): Ditto. * d10v-tdep.c (d10v_print_registers_info): Ditto. * frame.h (frame_read_register): Delete declaration. * frame.c (frame_read_register): Delete function. * arch-utils.c (legacy_register_to_value): Use get_frame_register. * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto. * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto. * mips-tdep.c (mips_register_to_value): Ditto. * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto. * d10v-tdep.c (d10v_print_registers_info): Ditto. * frame.c (frame_read_signed_register): Delete function. (frame_read_unsigned_register): Update comments. * frame.h (frame_read_signed_register): Delete declaration. * h8300-tdep.c (h8300_print_register): Use get_frame_register_signed. * m68hc11-tdep.c (m68hc11_print_register): Ditto.
Diffstat (limited to 'gdb/sparc-tdep.c')
-rw-r--r--gdb/sparc-tdep.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/sparc-tdep.c b/gdb/sparc-tdep.c
index f3e953580c5..46b041494c5 100644
--- a/gdb/sparc-tdep.c
+++ b/gdb/sparc-tdep.c
@@ -299,7 +299,7 @@ sparc_init_extra_frame_info (int fromleaf, struct frame_info *fi)
{
/* Should we adjust for stack bias here? */
ULONGEST tmp;
- frame_read_unsigned_register (fi, DEPRECATED_FP_REGNUM, &tmp);
+ tmp = get_frame_register_unsigned (fi, DEPRECATED_FP_REGNUM);
deprecated_update_frame_base_hack (fi, tmp);
if (GDB_TARGET_IS_SPARC64 && (get_frame_base (fi) & 1))
deprecated_update_frame_base_hack (fi, get_frame_base (fi) + 2047);
@@ -339,7 +339,7 @@ sparc_init_extra_frame_info (int fromleaf, struct frame_info *fi)
/* Overwrite the frame's address with the value in %i7. */
{
ULONGEST tmp;
- frame_read_unsigned_register (fi, I7_REGNUM, &tmp);
+ tmp = get_frame_register_unsigned (fi, I7_REGNUM);
deprecated_update_frame_base_hack (fi, tmp);
}
@@ -455,7 +455,7 @@ sparc_frame_saved_pc (struct frame_info *frame)
/* The sigcontext address is contained in register O2. */
{
ULONGEST tmp;
- frame_read_unsigned_register (frame, O0_REGNUM + 2, &tmp);
+ tmp = get_frame_register_unsigned (frame, O0_REGNUM + 2);
sigcontext_addr = tmp;
}
@@ -474,7 +474,7 @@ sparc_frame_saved_pc (struct frame_info *frame)
/* A frameless function interrupted by a signal did not save
the PC, it is still in %o7. */
ULONGEST tmp;
- frame_read_unsigned_register (frame, O7_REGNUM, &tmp);
+ tmp = get_frame_register_unsigned (frame, O7_REGNUM);
return PC_ADJUST (tmp);
}
if (get_frame_extra_info (frame)->flat)
@@ -1337,7 +1337,7 @@ sparc_pop_frame (void)
it is a complicated way of saying
"pc = read_register (O7_REGNUM);". */
ULONGEST tmp;
- frame_read_unsigned_register (frame, O7_REGNUM, &tmp);
+ tmp = get_frame_register_unsigned (frame, O7_REGNUM);
pc = PC_ADJUST (tmp);
}
@@ -3169,7 +3169,7 @@ sparc_fetch_pointer_argument (struct frame_info *frame, int argi,
struct type *type)
{
CORE_ADDR addr;
- frame_read_register (frame, O0_REGNUM + argi, &addr);
+ get_frame_register (frame, O0_REGNUM + argi, &addr);
return addr;
}