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]

Re: [PATCH/RFA] Remove high_addr from mips_extra_func_info for MIPS


Mark Kettenis wrote:
AFAICT this member is no longer used.  Now if we could remove the
frame_adjust member too we could eliminate this defenition from
tm-mips.h (and tm-alpha.h too).  Looking into that now.

Andrew, is this OK?

Not yet, I've other change to commit first. Sorry.


Andrew

Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* mips-tdep.c (PROC_HIGH_ADDR): Remove macro.
(non_heuristic_proc_desc): Don't use PROC_HIGH_ADDR.
* config/mips/tm-mips.h (struct mips_extra_func_info): Remove
`high_addr' member.


Index: mips-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/mips-tdep.c,v
retrieving revision 1.339
diff -u -p -r1.339 mips-tdep.c
--- mips-tdep.c 30 Oct 2004 14:31:19 -0000 1.339
+++ mips-tdep.c 30 Oct 2004 15:35:48 -0000
@@ -641,7 +641,6 @@ static int mips16_to_32_reg[8] = { 16, 1
static unsigned int heuristic_fence_post = 0;
#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)
@@ -2849,9 +2848,6 @@ 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,
Index: config/mips/tm-mips.h
===================================================================
RCS file: /cvs/src/src/gdb/config/mips/tm-mips.h,v
retrieving revision 1.63
diff -u -p -r1.63 tm-mips.h
--- config/mips/tm-mips.h 26 Oct 2004 14:13:24 -0000 1.63
+++ config/mips/tm-mips.h 30 Oct 2004 15:35:48 -0000
@@ -74,7 +74,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 */
}




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