From Michal Ludvig <mludvig@suse.cz>:
[deliverable/binutils-gdb.git] / gdb / i386-tdep.h
index b2c2dffd203331556c162d4a00be532fe155415f..38eac2004e8e2d297d1c3c952e12a906d69cab14 100644 (file)
@@ -71,7 +71,12 @@ struct gdbarch_tdep
   /* Get address of sigcontext for sigtramp.  */
   CORE_ADDR (*sigcontext_addr) (struct frame_info *);
 
-  /* Offset of saved PC and SP in `struct sigcontext'.  */
+  /* Offset of registers in `struct sigcontext'.  */
+  int *sc_reg_offset;
+  int sc_num_regs;
+
+  /* Offset of saved PC and SP in `struct sigcontext'.  Usage of these
+     is deprecated, please use `sc_reg_offset' instead.  */
   int sc_pc_offset;
   int sc_sp_offset;
 };
@@ -137,6 +142,16 @@ extern int i386_mxcsr_regnum_p (int 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) */
+
 #define I386_NUM_GREGS 16
 #define I386_NUM_FREGS 16
 #define I386_NUM_XREGS  9
This page took 0.024711 seconds and 4 git commands to generate.