diff options
author | Mark Kettenis <kettenis@gnu.org> | 2002-06-15 12:59:09 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2002-06-15 12:59:09 +0000 |
commit | 1cf88de5c58d1400451fe01135e975e9a0a21921 (patch) | |
tree | 8f0dc68f7387bd17136911db10bec54be54b510e /gdb/i386-tdep.c | |
parent | daa665871df2a3a60b5c5c65699a58deacc63be5 (diff) | |
download | gdb-1cf88de5c58d1400451fe01135e975e9a0a21921.zip gdb-1cf88de5c58d1400451fe01135e975e9a0a21921.tar.gz gdb-1cf88de5c58d1400451fe01135e975e9a0a21921.tar.bz2 |
* 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/i386-tdep.c')
-rw-r--r-- | gdb/i386-tdep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index f0723fa..9db5fdc 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]; |