Use core regset iterators on GNU Hurd
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Mon, 1 Dec 2014 12:42:41 +0000 (13:42 +0100)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Mon, 1 Dec 2014 12:42:41 +0000 (13:42 +0100)
commitac3d87c0d256547c036067de7bceee320b9bab8f
treeab3378d16a5dab2228a874fb2d713fa18202513e
parent591f7597d447d8d038d6d8e24a706d1d5e32eba1
Use core regset iterators on GNU Hurd

Remove native-only core file handling on GNU Hurd.  Instead, enable the
x86 target generic core regset logic on the Hurd by providing an
appropriate register offset map.

Thanks to Samuel Thibault for testing!

gdb/

* config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
* i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
(CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
(supply_gregset, supply_fpregset): Remove.
* i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
(i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
and sizeof_gregset.
gdb/ChangeLog
gdb/config/i386/i386gnu.mh
gdb/i386gnu-nat.c
gdb/i386gnu-tdep.c
This page took 0.025076 seconds and 4 git commands to generate.