This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] deprecate PRINT_EXTRA_FRAME_INFO


FYI,

Only two architectures defined this macro. For the MIPS I deleted it. For the SPARC, I deprecated it (Mark, want it deleted?).

committed,
Andrew
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.

Index: mips-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/mips-tdep.c,v
retrieving revision 1.241
diff -u -r1.241 mips-tdep.c
--- mips-tdep.c	24 Oct 2003 17:37:03 -0000	1.241
+++ mips-tdep.c	5 Nov 2003 15:49:37 -0000
@@ -624,18 +624,6 @@
   }
  *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.  */
@@ -6359,9 +6347,6 @@
   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,
Index: stack.c
===================================================================
RCS file: /cvs/src/src/gdb/stack.c,v
retrieving revision 1.92
diff -u -r1.92 stack.c
--- stack.c	31 Oct 2003 22:38:22 -0000	1.92
+++ stack.c	5 Nov 2003 15:49:37 -0000
@@ -968,8 +968,8 @@
     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
 
   {
Index: config/mips/tm-mips.h
===================================================================
RCS file: /cvs/src/src/gdb/config/mips/tm-mips.h,v
retrieving revision 1.52
diff -u -r1.52 tm-mips.h
--- config/mips/tm-mips.h	21 Jun 2003 23:14:44 -0000	1.52
+++ config/mips/tm-mips.h	5 Nov 2003 15:49:38 -0000
@@ -130,10 +130,6 @@
   }
  *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
Index: config/sparc/tm-sparc.h
===================================================================
RCS file: /cvs/src/src/gdb/config/sparc/tm-sparc.h,v
retrieving revision 1.61
diff -u -r1.61 tm-sparc.h
--- config/sparc/tm-sparc.h	2 Oct 2003 20:28:31 -0000	1.61
+++ config/sparc/tm-sparc.h	5 Nov 2003 15:49:38 -0000
@@ -204,7 +204,7 @@
 
 #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 *);
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]