* config/tc-hppa.c: Fix comment typos.
[deliverable/binutils-gdb.git] / gdb / i386-tdep.h
index 59668d6b60835cf42c2e67a5bfe59bfa5e990d6f..c261e38c61ca9e8a385f811d22eb8714e7bda120 100644 (file)
@@ -104,8 +104,6 @@ struct gdbarch_tdep
 
 /* Floating-point registers.  */
 
-#define FPU_REG_RAW_SIZE 10
-
 /* All FPU control regusters (except for FIOFF and FOOFF) are 16-bit
    (at most) in the FPU, but are zero-extended to 32 bits in GDB's
    register cache.  */
@@ -152,21 +150,22 @@ extern int i386_fpc_regnum_p (int regnum);
 #define MXCSR_REGNUM \
   (XMM0_REGNUM + gdbarch_tdep (current_gdbarch)->num_xmm_regs)
 
-/* FIXME: kettenis/2001-11-24: Obsolete macro's.  */
-#define FCS_REGNUM FISEG_REGNUM
-#define FCOFF_REGNUM FIOFF_REGNUM
-#define FDS_REGNUM FOSEG_REGNUM
-#define FDOFF_REGNUM FOOFF_REGNUM
-
 /* Register numbers of various important registers.  */
 
-#define I386_EAX_REGNUM                0 /* %eax */
-#define I386_EDX_REGNUM                2 /* %edx */
-#define I386_ESP_REGNUM                4 /* %esp */
-#define I386_EBP_REGNUM                5 /* %ebp */
-#define I386_EIP_REGNUM                8 /* %eip */
-#define I386_EFLAGS_REGNUM     9 /* %eflags */
-#define I386_ST0_REGNUM                16 /* %st(0) */
+enum i386_regnum
+{
+  I386_EAX_REGNUM,             /* %eax */
+  I386_ECX_REGNUM,             /* %ecx */
+  I386_EDX_REGNUM,             /* %edx */
+  I386_EBX_REGNUM,             /* %ebx */
+  I386_ESP_REGNUM,             /* %esp */
+  I386_EBP_REGNUM,             /* %ebp */
+  I386_ESI_REGNUM,             /* %esi */
+  I386_EDI_REGNUM,             /* %edi */
+  I386_EIP_REGNUM,             /* %eip */
+  I386_EFLAGS_REGNUM,          /* %eflags */
+  I386_ST0_REGNUM = 16,                /* %st(0) */
+};
 
 #define I386_NUM_GREGS 16
 #define I386_NUM_FREGS 16
@@ -189,6 +188,13 @@ extern char const *i386_register_name (int reg);
 extern int i386_register_reggroup_p (struct gdbarch *gdbarch, int regnum,
                                     struct reggroup *group);
 
+/* Supply register REGNUM from the general-purpose register set REGSET
+   to register cache REGCACHE.  If REGNUM is -1, do this for all
+   registers in REGSET.  */
+extern void i386_supply_gregset (const struct regset *regset,
+                                struct regcache *regcache, int regnum,
+                                const void *gregs, size_t len);
+
 /* Return the appropriate register set for the core section identified
    by SECT_NAME and SECT_SIZE.  */
 extern const struct regset *
This page took 0.023824 seconds and 4 git commands to generate.