forked from Imagelibrary/binutils-gdb
* i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
specify size of array. (i386_linux_init_abi): Remove initialization of TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
This commit is contained in:
@@ -1,5 +1,11 @@
|
|||||||
2003-10-30 Mark Kettenis <kettenis@gnu.org>
|
2003-10-30 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
|
* i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
|
||||||
|
specify size of array.
|
||||||
|
(i386_linux_init_abi): Remove initialization of
|
||||||
|
TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
|
||||||
|
registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
|
||||||
|
|
||||||
* config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
|
* config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
|
||||||
* config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
|
* config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
|
||||||
core-regset.o.
|
core-regset.o.
|
||||||
|
|||||||
@@ -440,7 +440,7 @@ i386_linux_svr4_fetch_link_map_offsets (void)
|
|||||||
|
|
||||||
|
|
||||||
/* From <asm/sigcontext.h>. */
|
/* From <asm/sigcontext.h>. */
|
||||||
static int i386_linux_sc_reg_offset[I386_NUM_GREGS] =
|
static int i386_linux_sc_reg_offset[] =
|
||||||
{
|
{
|
||||||
11 * 4, /* %eax */
|
11 * 4, /* %eax */
|
||||||
10 * 4, /* %ecx */
|
10 * 4, /* %ecx */
|
||||||
@@ -468,15 +468,11 @@ i386_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
|
|||||||
/* GNU/Linux uses ELF. */
|
/* GNU/Linux uses ELF. */
|
||||||
i386_elf_init_abi (info, gdbarch);
|
i386_elf_init_abi (info, gdbarch);
|
||||||
|
|
||||||
/* We support the SSE registers on GNU/Linux. */
|
|
||||||
tdep->num_xmm_regs = I386_NUM_XREGS - 1;
|
|
||||||
/* set_gdbarch_num_regs (gdbarch, I386_SSE_NUM_REGS); */
|
|
||||||
|
|
||||||
/* Since we have the extra "orig_eax" register on GNU/Linux, we have
|
/* Since we have the extra "orig_eax" register on GNU/Linux, we have
|
||||||
to adjust a few things. */
|
to adjust a few things. */
|
||||||
|
|
||||||
set_gdbarch_write_pc (gdbarch, i386_linux_write_pc);
|
set_gdbarch_write_pc (gdbarch, i386_linux_write_pc);
|
||||||
set_gdbarch_num_regs (gdbarch, I386_SSE_NUM_REGS + 1);
|
set_gdbarch_num_regs (gdbarch, I386_LINUX_NUM_REGS);
|
||||||
set_gdbarch_register_name (gdbarch, i386_linux_register_name);
|
set_gdbarch_register_name (gdbarch, i386_linux_register_name);
|
||||||
set_gdbarch_register_reggroup_p (gdbarch, i386_linux_register_reggroup_p);
|
set_gdbarch_register_reggroup_p (gdbarch, i386_linux_register_reggroup_p);
|
||||||
|
|
||||||
@@ -484,7 +480,7 @@ i386_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
|
|||||||
|
|
||||||
tdep->sigcontext_addr = i386_linux_sigcontext_addr;
|
tdep->sigcontext_addr = i386_linux_sigcontext_addr;
|
||||||
tdep->sc_reg_offset = i386_linux_sc_reg_offset;
|
tdep->sc_reg_offset = i386_linux_sc_reg_offset;
|
||||||
tdep->sc_num_regs = I386_NUM_GREGS;
|
tdep->sc_num_regs = ARRAY_SIZE (i386_linux_sc_reg_offset);
|
||||||
|
|
||||||
/* When the i386 Linux kernel calls a signal handler, the return
|
/* When the i386 Linux kernel calls a signal handler, the return
|
||||||
address points to a bit of code on the stack. This function is
|
address points to a bit of code on the stack. This function is
|
||||||
|
|||||||
Reference in New Issue
Block a user