summaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2002-06-15 12:59:09 +0000
committerMark Kettenis <kettenis@gnu.org>2002-06-15 12:59:09 +0000
commit89b64ad41363397d51389b07d4a1cbdf351f5049 (patch)
treec69a633761a431751a0cb8154d1949da3ea79a23 /gdb
parent29f28820604d84d7c172a1d0d7595daa38124e35 (diff)
downloadgdb-89b64ad41363397d51389b07d4a1cbdf351f5049.tar.gz
* config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
* i386-tdep.c (i386_register_offset, i386_register_size): Use I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of elements in these arrays. (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of MAX_NUM_REGS.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog9
-rw-r--r--gdb/config/i386/tm-i386.h3
-rw-r--r--gdb/i386-tdep.c6
3 files changed, 12 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 621b9c49447..14d1bb3c00b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,14 @@
2002-06-15 Mark Kettenis <kettenis@gnu.org>
+ * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
+ * i386-tdep.c (i386_register_offset, i386_register_size): Use
+ I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
+ elements in these arrays.
+ (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
+ MAX_NUM_REGS.
+
+2002-06-15 Mark Kettenis <kettenis@gnu.org>
+
* osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
* osabi.c (gdb_osabi_names): Add entry for "LynxOS".
diff --git a/gdb/config/i386/tm-i386.h b/gdb/config/i386/tm-i386.h
index 0ea151b4a14..34383510a71 100644
--- a/gdb/config/i386/tm-i386.h
+++ b/gdb/config/i386/tm-i386.h
@@ -93,9 +93,6 @@ extern int i386_skip_prologue (int);
#define NUM_SSE_REGS (0)
#endif
-/* Largest number of registers we could have in any configuration. */
-#define MAX_NUM_REGS (16 + 16 + 9 + 1)
-
/* Register numbers of various important registers.
Note that some of these values are "real" register numbers,
and correspond to the general registers of the machine,
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c
index f0723fa660b..9db5fdcfd28 100644
--- a/gdb/i386-tdep.c
+++ b/gdb/i386-tdep.c
@@ -58,11 +58,11 @@ static char *i386_register_names[] =
/* i386_register_offset[i] is the offset into the register file of the
start of register number i. We initialize this from
i386_register_size. */
-static int i386_register_offset[MAX_NUM_REGS];
+static int i386_register_offset[I386_SSE_NUM_REGS];
/* i386_register_size[i] is the number of bytes of storage in GDB's
register array occupied by register i. */
-static int i386_register_size[MAX_NUM_REGS] = {
+static int i386_register_size[I386_SSE_NUM_REGS] = {
4, 4, 4, 4,
4, 4, 4, 4,
4, 4, 4, 4,
@@ -1447,7 +1447,7 @@ _initialize_i386_tdep (void)
int i, offset;
offset = 0;
- for (i = 0; i < MAX_NUM_REGS; i++)
+ for (i = 0; i < I386_SSE_NUM_REGS; i++)
{
i386_register_offset[i] = offset;
offset += i386_register_size[i];