This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit] Add MIPS_EMBED...
- From: Andrew Cagney <cagney at gnu dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Sat, 30 Oct 2004 18:09:04 -0400
- Subject: [commit] Add MIPS_EMBED...
committed,
Andrew
2004-10-30 Andrew Cagney <cagney@gnu.org>
* mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
(MIPS_LAST_EMBED_REGNUM): Add.
* config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
(LAST_EMBED_REGNUM): Delete.
* mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
Index: mips-linux-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/mips-linux-tdep.c,v
retrieving revision 1.32
diff -p -u -r1.32 mips-linux-tdep.c
--- mips-linux-tdep.c 30 Oct 2004 22:54:40 -0000 1.32
+++ mips-linux-tdep.c 30 Oct 2004 23:07:31 -0000
@@ -130,7 +130,7 @@ supply_gregset (elf_gregset_t *gregsetp)
/* Fill inaccessible registers with zero. */
regcache_raw_supply (current_regcache, MIPS_UNUSED_REGNUM, zerobuf);
- for (regi = FIRST_EMBED_REGNUM; regi < LAST_EMBED_REGNUM; regi++)
+ for (regi = MIPS_FIRST_EMBED_REGNUM; regi < MIPS_LAST_EMBED_REGNUM; regi++)
regcache_raw_supply (current_regcache, regi, zerobuf);
}
@@ -409,7 +409,7 @@ mips64_supply_gregset (mips64_elf_gregse
/* Fill inaccessible registers with zero. */
regcache_raw_supply (current_regcache, MIPS_UNUSED_REGNUM, zerobuf);
- for (regi = FIRST_EMBED_REGNUM; regi < LAST_EMBED_REGNUM; regi++)
+ for (regi = MIPS_FIRST_EMBED_REGNUM; regi < MIPS_LAST_EMBED_REGNUM; regi++)
regcache_raw_supply (current_regcache, regi, zerobuf);
}
Index: mips-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/mips-tdep.c,v
retrieving revision 1.353
diff -p -u -r1.353 mips-tdep.c
--- mips-tdep.c 30 Oct 2004 22:54:40 -0000 1.353
+++ mips-tdep.c 30 Oct 2004 23:07:32 -0000
@@ -718,7 +718,7 @@ mips_register_type (struct gdbarch *gdba
the ABI (with a few complications). */
if (regnum >= (NUM_REGS
+ mips_regnum (current_gdbarch)->fp_control_status)
- && regnum <= NUM_REGS + LAST_EMBED_REGNUM)
+ && regnum <= NUM_REGS + MIPS_LAST_EMBED_REGNUM)
/* The pseudo/cooked view of the embedded registers is always
32-bit. The raw view is handled below. */
return builtin_type_int32;
@@ -5260,17 +5260,11 @@ mips_dump_tdep (struct gdbarch *current_
"mips_dump_tdep: ECOFF_REG_TO_REGNUM # %s\n",
XSTRING (ECOFF_REG_TO_REGNUM (REGNUM)));
fprintf_unfiltered (file,
- "mips_dump_tdep: FIRST_EMBED_REGNUM = %d\n",
- FIRST_EMBED_REGNUM);
- fprintf_unfiltered (file,
"mips_dump_tdep: DEPRECATED_IGNORE_HELPER_CALL # %s\n",
XSTRING (DEPRECATED_IGNORE_HELPER_CALL (PC)));
fprintf_unfiltered (file,
"mips_dump_tdep: IN_SOLIB_CALL_TRAMPOLINE # %s\n",
XSTRING (IN_SOLIB_CALL_TRAMPOLINE (PC, NAME)));
- fprintf_unfiltered (file,
- "mips_dump_tdep: LAST_EMBED_REGNUM = %d\n",
- LAST_EMBED_REGNUM);
#ifdef MACHINE_CPROC_FP_OFFSET
fprintf_unfiltered (file,
"mips_dump_tdep: MACHINE_CPROC_FP_OFFSET = %d\n",
Index: mips-tdep.h
===================================================================
RCS file: /cvs/src/src/gdb/mips-tdep.h,v
retrieving revision 1.15
diff -p -u -r1.15 mips-tdep.h
--- mips-tdep.h 30 Oct 2004 22:54:40 -0000 1.15
+++ mips-tdep.h 30 Oct 2004 23:07:32 -0000
@@ -84,7 +84,9 @@ enum
MIPS_EMBED_CAUSE_REGNUM = 36,
MIPS_EMBED_PC_REGNUM = 37,
MIPS_EMBED_FP0_REGNUM = 38,
- MIPS_UNUSED_REGNUM = 73 /* Never used, FIXME */
+ MIPS_UNUSED_REGNUM = 73, /* Never used, FIXME */
+ MIPS_FIRST_EMBED_REGNUM = 74, /* First CP0 register for embedded use. */
+ MIPS_LAST_EMBED_REGNUM = 89 /* Last one. */
};
/* Defined in mips-tdep.c and used in remote-mips.c */
Index: mipsv4-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/mipsv4-nat.c,v
retrieving revision 1.19
diff -p -u -r1.19 mipsv4-nat.c
--- mipsv4-nat.c 30 Oct 2004 22:54:40 -0000 1.19
+++ mipsv4-nat.c 30 Oct 2004 23:07:32 -0000
@@ -69,7 +69,7 @@ supply_gregset (gregset_t *gregsetp)
zerobuf);
regcache_raw_supply (current_regcache, DEPRECATED_FP_REGNUM, zerobuf);
regcache_raw_supply (current_regcache, MIPS_UNUSED_REGNUM, zerobuf);
- for (regi = FIRST_EMBED_REGNUM; regi <= LAST_EMBED_REGNUM; regi++)
+ for (regi = MIPS_FIRST_EMBED_REGNUM; regi <= MIPS_LAST_EMBED_REGNUM; regi++)
regcache_raw_supply (current_regcache, regi, zerobuf);
}
Index: config/mips/tm-mips.h
===================================================================
RCS file: /cvs/src/src/gdb/config/mips/tm-mips.h,v
retrieving revision 1.68
diff -p -u -r1.68 tm-mips.h
--- config/mips/tm-mips.h 30 Oct 2004 22:54:40 -0000 1.68
+++ config/mips/tm-mips.h 30 Oct 2004 23:07:32 -0000
@@ -44,9 +44,7 @@ extern int mips_step_skips_delay (CORE_A
#define STEP_SKIPS_DELAY(pc) (mips_step_skips_delay (pc))
#define RA_REGNUM 31 /* Contains return address value */
-#define FIRST_EMBED_REGNUM 74 /* First CP0 register for embedded use */
#define PRID_REGNUM 89 /* Processor ID */
-#define LAST_EMBED_REGNUM 89 /* Last one */
/* Special symbol found in blocks associated with routines. We can hang
mips_extra_func_info_t's off of this. */