2003-06-21 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Sat, 21 Jun 2003 16:51:47 +0000 (16:51 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sat, 21 Jun 2003 16:51:47 +0000 (16:51 +0000)
* 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.

gdb/ChangeLog
gdb/frame.c
gdb/frame.h
gdb/mips-tdep.c

index 17d3baa2a0a3a00adf47244276c583513b9af0f1..2e4ff7b3df19be572d473042a508e331ed8247e3 100644 (file)
@@ -1,5 +1,11 @@
 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.
+
        * mips-tdep.c (mips_dump_tdep): Do not print
        REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
 
index b873b3af27c2c8c418f088937e3e73cda065799d..eadb77de4c433d2bc807ec82def29194d85f87dd 100644 (file)
@@ -738,36 +738,6 @@ put_frame_register (struct frame_info *frame, int regnum, const void *buf)
     }
 }
 
-void
-deprecated_unwind_get_saved_register (char *raw_buffer,
-                                     int *optimizedp,
-                                     CORE_ADDR *addrp,
-                                     struct frame_info *frame,
-                                     int regnum,
-                                     enum lval_type *lvalp)
-{
-  int optimizedx;
-  CORE_ADDR addrx;
-  int realnumx;
-  enum lval_type lvalx;
-
-  if (!target_has_registers)
-    error ("No registers.");
-
-  /* Keep things simple, ensure that all the pointers (except valuep)
-     are non NULL.  */
-  if (optimizedp == NULL)
-    optimizedp = &optimizedx;
-  if (lvalp == NULL)
-    lvalp = &lvalx;
-  if (addrp == NULL)
-    addrp = &addrx;
-
-  gdb_assert (frame != NULL && frame->next != NULL);
-  frame_register_unwind (frame->next, regnum, optimizedp, lvalp, addrp,
-                        &realnumx, raw_buffer);
-}
-
 /* frame_register_read ()
 
    Find and return the value of REGNUM for the specified stack frame.
index be1b4f1f7aaf2d05795a1bfc9cad3173689f7c33..87c20570c483b24a9825c28c35311524db1ba83c 100644 (file)
@@ -568,12 +568,6 @@ extern char *deprecated_generic_find_dummy_frame (CORE_ADDR pc, CORE_ADDR fp);
 /* The DEPRECATED_GET_SAVED_REGISTER architecture interface is
    entirely redundant.  New architectures should implement per-frame
    unwinders (ref "frame-unwind.h").  */
-extern void deprecated_unwind_get_saved_register (char *raw_buffer,
-                                                 int *optimizedp,
-                                                 CORE_ADDR *addrp,
-                                                 struct frame_info *frame,
-                                                 int regnum,
-                                                 enum lval_type *lvalp);
 extern void deprecated_generic_get_saved_register (char *, int *, CORE_ADDR *,
                                                   struct frame_info *, int,
                                                   enum lval_type *);
index c0c01633b184acac8502e895538679bdcd19de04..538714c45fcd711723c38e8d0c25e5739bb5b17a 100644 (file)
@@ -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