diff options
author | Mark Kettenis <kettenis@gnu.org> | 2003-10-26 13:08:57 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2003-10-26 13:08:57 +0000 |
commit | bcf48cc700d1f667aba7794950664a5dd83270d1 (patch) | |
tree | 13fe09de5a001a991bf077335066b017573f3b16 /gdb/i386-tdep.c | |
parent | e090dc6d51d2e83248fc3b52ab834383b50f48c7 (diff) | |
download | gdb-bcf48cc700d1f667aba7794950664a5dd83270d1.zip gdb-bcf48cc700d1f667aba7794950664a5dd83270d1.tar.gz gdb-bcf48cc700d1f667aba7794950664a5dd83270d1.tar.bz2 |
Change register numbers to enumartion values.
* i386-tdep.h (enum i386_regnum): New.
(I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
I386_ST0_REGNUM): Remove defines.
* i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
I386_EDI_REGNUM): Remove defines.
Diffstat (limited to 'gdb/i386-tdep.c')
-rw-r--r-- | gdb/i386-tdep.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index 21721de..e8d42a1 100644 --- a/gdb/i386-tdep.c +++ b/gdb/i386-tdep.c @@ -1418,14 +1418,6 @@ i386_pseudo_register_write (struct gdbarch *gdbarch, struct regcache *regcache, } -/* These registers don't have pervasive standard uses. Move them to - i386-tdep.h if necessary. */ - -#define I386_EBX_REGNUM 3 /* %ebx */ -#define I386_ECX_REGNUM 1 /* %ecx */ -#define I386_ESI_REGNUM 6 /* %esi */ -#define I386_EDI_REGNUM 7 /* %edi */ - /* Return the register number of the register allocated by GCC after REGNUM, or -1 if there is no such register. */ |