+2003-11-05  Andrew Cagney  <cagney@redhat.com>
+
+       * mips-tdep.c (mips_dump_tdep): Do not print
+       PRINT_EXTRA_FRAME_INFO.
+       * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
+       Rename PRINT_EXTRA_FRAME_INFO.
+       * mips-tdep.c (mips_print_extra_frame_info): Delete function.
+       * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
+       (mips_print_extra_frame_info): Delete declaration.
+       * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
+
 2003-11-05 Elena Zannoni  <ezannoni@redhat.com>
 
        * coffread.c (coff_symtab_read): Remove passing of info parameter
 
   }
  *mips_extra_func_info_t;
 
-extern void mips_print_extra_frame_info (struct frame_info *frame);
-#define        PRINT_EXTRA_FRAME_INFO(fi) \
-  mips_print_extra_frame_info (fi)
-
 /* It takes two values to specify a frame on the MIPS.
 
    In fact, the *PC* is the primary value that sets up a frame.  The
 
 
 #define CANNOT_STORE_REGISTER(regno) ((regno) == G0_REGNUM)
 
-#define        PRINT_EXTRA_FRAME_INFO(FI) \
+#define        DEPRECATED_PRINT_EXTRA_FRAME_INFO(FI) \
      sparc_print_extra_frame_info (FI)
 extern void sparc_print_extra_frame_info (struct frame_info *);
 
 
   }
  *linked_proc_desc_table = NULL;
 
-void
-mips_print_extra_frame_info (struct frame_info *fi)
-{
-  if (fi
-      && get_frame_extra_info (fi)
-      && get_frame_extra_info (fi)->proc_desc
-      && get_frame_extra_info (fi)->proc_desc->pdr.framereg < NUM_REGS)
-    printf_filtered (" frame pointer is at %s+%s\n",
-                    REGISTER_NAME (get_frame_extra_info (fi)->proc_desc->pdr.framereg),
-                    paddr_d (get_frame_extra_info (fi)->proc_desc->pdr.frameoffset));
-}
-
 /* Number of bytes of storage in the actual machine representation for
    register N.  NOTE: This indirectly defines the register size
    transfered by the GDB protocol.  */
   fprintf_unfiltered (file,
                      "mips_dump_tdep: PRID_REGNUM = %d\n",
                      PRID_REGNUM);
-  fprintf_unfiltered (file,
-                     "mips_dump_tdep: PRINT_EXTRA_FRAME_INFO # %s\n",
-                     XSTRING (PRINT_EXTRA_FRAME_INFO (FRAME)));
   fprintf_unfiltered (file,
                      "mips_dump_tdep: PROC_DESC_IS_DUMMY = function?\n");
   fprintf_unfiltered (file,
 
     printf_filtered (" source language %s.\n",
                     language_str (s->language));
 
-#ifdef PRINT_EXTRA_FRAME_INFO
-  PRINT_EXTRA_FRAME_INFO (fi);
+#ifdef DEPRECATED_PRINT_EXTRA_FRAME_INFO
+  DEPRECATED_PRINT_EXTRA_FRAME_INFO (fi);
 #endif
 
   {