diff options
author | Mark Kettenis <kettenis@gnu.org> | 2003-10-11 15:38:55 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2003-10-11 15:38:55 +0000 |
commit | 155c1d33d83434961f865bb223252676fc66b311 (patch) | |
tree | 3e5893fb4482a5500ecaea62b206651baa68e54f | |
parent | 8a96bc77ca647909a8382ae295997bdb7efc63da (diff) | |
download | gdb-155c1d33d83434961f865bb223252676fc66b311.zip gdb-155c1d33d83434961f865bb223252676fc66b311.tar.gz gdb-155c1d33d83434961f865bb223252676fc66b311.tar.bz2 |
* i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
TDEP->sc_num_regs.
-rw-r--r-- | gdb/ChangeLog | 3 | ||||
-rw-r--r-- | gdb/i386bsd-tdep.c | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c25ec76..1df4163 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2003-10-11 Mark Kettenis <kettenis@gnu.org> + * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize + TDEP->sc_num_regs. + * i386fbsd-tdep.c: New file. (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end, i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi, diff --git a/gdb/i386bsd-tdep.c b/gdb/i386bsd-tdep.c index aa3a7e4..80739cf 100644 --- a/gdb/i386bsd-tdep.c +++ b/gdb/i386bsd-tdep.c @@ -87,7 +87,7 @@ i386bsd_aout_in_solib_call_trampoline (CORE_ADDR pc, char *name) /* Traditional BSD (4.3 BSD, still used for BSDI and 386BSD). */ /* From <machine/signal.h>. */ -int i386bsd_sc_reg_offset[I386_NUM_GREGS] = +int i386bsd_sc_reg_offset[] = { -1, /* %eax */ -1, /* %ecx */ @@ -128,7 +128,7 @@ i386bsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) tdep->sigtramp_end = 0xfdbfe000; tdep->sigcontext_addr = i386bsd_sigcontext_addr; tdep->sc_reg_offset = i386bsd_sc_reg_offset; - tdep->sc_num_regs = I386_NUM_GREGS; + tdep->sc_num_regs = ARRAY_SIZE (i386bsd_sc_reg_offset); } |