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] Eliminate MIPS HIGH_ADDR and FRAME_ADJUST


Mark noticed this, committed.
Andrew
2004-10-30  Andrew Cagney  <cagney@gnu.org>

	Suggested by Mark Kettenis.
	* config/mips/tm-mips.h (struct mips_extra_func_info): Delete
	fields frame_adjust and high_addr.
	* mips-mdebug-tdep.c (PROC_HIGH_ADDR, PROC_FRAME_ADJUST): Delete.
	(non_heuristic_proc_desc): Delete references.

Index: mips-mdebug-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/mips-mdebug-tdep.c,v
retrieving revision 1.1
diff -p -u -r1.1 mips-mdebug-tdep.c
--- mips-mdebug-tdep.c	30 Oct 2004 20:26:25 -0000	1.1
+++ mips-mdebug-tdep.c	31 Oct 2004 00:06:07 -0000
@@ -37,10 +37,8 @@
 #include "mips-mdebug-tdep.h"
 
 #define PROC_LOW_ADDR(proc) ((proc)->pdr.adr)	/* least address */
-#define PROC_HIGH_ADDR(proc) ((proc)->high_addr)	/* upper address bound */
 #define PROC_FRAME_OFFSET(proc) ((proc)->pdr.frameoffset)
 #define PROC_FRAME_REG(proc) ((proc)->pdr.framereg)
-#define PROC_FRAME_ADJUST(proc)  ((proc)->frame_adjust)
 #define PROC_REG_MASK(proc) ((proc)->pdr.regmask)
 #define PROC_FREG_MASK(proc) ((proc)->pdr.fregmask)
 #define PROC_REG_OFFSET(proc) ((proc)->pdr.regoffset)
@@ -215,14 +213,10 @@ non_heuristic_proc_desc (CORE_ADDR pc, C
 			       sizeof (struct mips_extra_func_info));
 	      PROC_LOW_ADDR (proc_desc) = pdr_pc;
 
-	      /* Only used for dummy frames.  */
-	      PROC_HIGH_ADDR (proc_desc) = 0;
-
 	      PROC_FRAME_OFFSET (proc_desc)
 		= bfd_get_32 (sec->objfile->obfd, ptr + 20);
 	      PROC_FRAME_REG (proc_desc) = bfd_get_32 (sec->objfile->obfd,
 						       ptr + 24);
-	      PROC_FRAME_ADJUST (proc_desc) = 0;
 	      PROC_REG_MASK (proc_desc) = bfd_get_32 (sec->objfile->obfd,
 						      ptr + 4);
 	      PROC_FREG_MASK (proc_desc) = bfd_get_32 (sec->objfile->obfd,
@@ -301,7 +295,7 @@ mips_mdebug_frame_cache (struct frame_in
 
   /* Extract the frame's base.  */
   cache->base = (frame_unwind_register_signed (next_frame, NUM_REGS + PROC_FRAME_REG (proc_desc))
-		 + PROC_FRAME_OFFSET (proc_desc) - PROC_FRAME_ADJUST (proc_desc));
+		 + PROC_FRAME_OFFSET (proc_desc));
 
   kernel_trap = PROC_REG_MASK (proc_desc) & 1;
   gen_mask = kernel_trap ? 0xFFFFFFFF : PROC_REG_MASK (proc_desc);
Index: config/mips/tm-mips.h
===================================================================
RCS file: /cvs/src/src/gdb/config/mips/tm-mips.h,v
retrieving revision 1.70
diff -p -u -r1.70 tm-mips.h
--- config/mips/tm-mips.h	30 Oct 2004 23:22:54 -0000	1.70
+++ config/mips/tm-mips.h	31 Oct 2004 00:06:07 -0000
@@ -58,8 +58,6 @@ extern void ecoff_relocate_efi (struct s
 typedef struct mips_extra_func_info
   {
     long numargs;		/* number of args to procedure (was iopt) */
-    bfd_vma high_addr;		/* upper address bound */
-    long frame_adjust;		/* offset of FP from SP (used on MIPS16) */
     PDR pdr;			/* Procedure descriptor record */
   }
  *mips_extra_func_info_t;

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