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 | aea3f270723dfcaa31d08c150c394959be71245d (patch) | |
tree | f7c2ba0ed0fdf58e32dc058708d2e5f4f993e52b /gdb/i386bsd-tdep.c | |
parent | a9c2961a3c28b4e100e865370e6248a4d3089fc5 (diff) | |
download | gdb-aea3f270723dfcaa31d08c150c394959be71245d.tar.gz |
* i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
TDEP->sc_num_regs.
Diffstat (limited to 'gdb/i386bsd-tdep.c')
-rw-r--r-- | gdb/i386bsd-tdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/i386bsd-tdep.c b/gdb/i386bsd-tdep.c index aa3a7e40a7d..80739cf572d 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); } |