aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-10-26 19:40:39 +0000
committerMark Kettenis <kettenis@gnu.org>2004-10-26 19:40:39 +0000
commit9c46b6f0067aa18573797f686c081d05cd23a8a6 (patch)
tree123b3d5933ab9d915cc44c7a7ea7044ba171e4e0 /gdb
parentba916c8af2642aebace1778a707e90a6a4f9095f (diff)
downloadgdb-9c46b6f0067aa18573797f686c081d05cd23a8a6.zip
gdb-9c46b6f0067aa18573797f686c081d05cd23a8a6.tar.gz
gdb-9c46b6f0067aa18573797f686c081d05cd23a8a6.tar.bz2
* mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM to enum with register numbers. (enum mips_insn_size): New enum.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/mips-tdep.h16
2 files changed, 22 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 164db5d..7f67c2a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+2004-10-26 Mark Kettenis <kettenis@gnu.org>
+
+ * mips-tdep.h: Add MIPS_ZERO_REGNUM, MIPS_AT_REGNUM,
+ MIPS_V0_REGNUM. MIPS_A0_REGNUM, MIPS_T9_REGNUM and MIPS_RA_REGNUM
+ to enum with register numbers.
+ (enum mips_insn_size): New enum.
+
2004-10-26 Andrew Cagney <cagney@gnu.org>
* config/mips/tm-linux.h: Delete #undef SKIP_TRAMPOLINE_CODE.
diff --git a/gdb/mips-tdep.h b/gdb/mips-tdep.h
index 67d8cd8..768878c 100644
--- a/gdb/mips-tdep.h
+++ b/gdb/mips-tdep.h
@@ -61,8 +61,15 @@ struct mips_regnum
};
extern const struct mips_regnum *mips_regnum (struct gdbarch *gdbarch);
-enum {
+enum
+{
+ MIPS_ZERO_REGNUM = 0,
+ MIPS_AT_REGNUM = 1,
+ MIPS_V0_REGNUM = 2,
+ MIPS_A0_REGNUM = 4,
+ MIPS_T9_REGNUM = 25,
MIPS_SP_REGNUM = 29,
+ MIPS_RA_REGNUM = 31,
MIPS_EMBED_LO_REGNUM = 33,
MIPS_EMBED_HI_REGNUM = 34,
MIPS_EMBED_BADVADDR_REGNUM = 35,
@@ -74,6 +81,13 @@ enum {
/* Defined in mips-tdep.c and used in remote-mips.c */
extern void deprecated_mips_set_processor_regs_hack (void);
+/* Instruction sizes. */
+enum mips_insn_size
+{
+ MIPS16_INSN_SIZE = 2,
+ MIPS32_INSN_SIZE = 4
+};
+
/* Single step based on where the current instruction will take us. */
extern void mips_software_single_step (enum target_signal, int);