From ac3d87c0d256547c036067de7bceee320b9bab8f Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Mon, 1 Dec 2014 13:42:41 +0100 Subject: 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 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/config/i386/i386gnu.mh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/config') diff --git a/gdb/config/i386/i386gnu.mh b/gdb/config/i386/i386gnu.mh index 4cc23e4..f1c0c5f 100644 --- a/gdb/config/i386/i386gnu.mh +++ b/gdb/config/i386/i386gnu.mh @@ -1,6 +1,6 @@ # Host: Intel 386 running the GNU Hurd NATDEPFILES= i386gnu-nat.o gnu-nat.o \ - x86-nat.o x86-dregs.o core-regset.o fork-child.o \ + x86-nat.o x86-dregs.o fork-child.o \ notify_S.o process_reply_S.o msg_reply_S.o \ msg_U.o exc_request_U.o exc_request_S.o HAVE_NATIVE_GCORE_HOST = 1 -- cgit v1.1