aboutsummaryrefslogtreecommitdiff
path: root/gdb/mips-tdep.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-06-21 16:51:47 +0000
committerAndrew Cagney <cagney@redhat.com>2003-06-21 16:51:47 +0000
commit6e51443a2a52062e54da687f7a70127a727335be (patch)
treee5d37cbb34b56f04acebfa01fd662bf49c4c00db /gdb/mips-tdep.c
parented183c7cdfbf1b412475b66feac3b6d4321404da (diff)
downloadgdb-6e51443a2a52062e54da687f7a70127a727335be.zip
gdb-6e51443a2a52062e54da687f7a70127a727335be.tar.gz
gdb-6e51443a2a52062e54da687f7a70127a727335be.tar.bz2
2003-06-21 Andrew Cagney <cagney@redhat.com>
* frame.h (deprecated_unwind_get_saved_register): Delete. * frame.c (deprecated_unwind_get_saved_register): Delete function. * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind and deprecated_get_next_frame_hack instead of deprecated_unwind_get_saved_register.
Diffstat (limited to 'gdb/mips-tdep.c')
-rw-r--r--gdb/mips-tdep.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c
index c0c0163..538714c 100644
--- a/gdb/mips-tdep.c
+++ b/gdb/mips-tdep.c
@@ -5430,6 +5430,7 @@ mips_get_saved_register (char *raw_buffer,
CORE_ADDR addrx;
enum lval_type lvalx;
int optimizedx;
+ int realnumx;
if (!target_has_registers)
error ("No registers.");
@@ -5441,8 +5442,10 @@ mips_get_saved_register (char *raw_buffer,
lvalp = &lvalx;
if (optimizedp == NULL)
optimizedp = &optimizedx;
- deprecated_unwind_get_saved_register (raw_buffer, optimizedp, addrp, frame,
- regnum, lvalp);
+ frame_register_unwind (deprecated_get_next_frame_hack (frame),
+ regnum, optimizedp, lvalp, addrp,
+ &realnumx, raw_buffer);
+
/* FIXME: cagney/2002-09-13: This is just so bad. The MIPS should
have a pseudo register range that correspons to the ABI's, rather
than the ISA's, view of registers. These registers would then