ac3d87c0d2
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.
38 lines
1.4 KiB
Text
38 lines
1.4 KiB
Text
# Host: Intel 386 running the GNU Hurd
|
|
NATDEPFILES= i386gnu-nat.o gnu-nat.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
|
|
|
|
NAT_FILE= nm-i386gnu.h
|
|
MH_CFLAGS = -D_GNU_SOURCE
|
|
|
|
XM_CLIBS = -lshouldbeinlibc
|
|
|
|
# Use our own user stubs for the msg rpcs, so we can make them time out, in
|
|
# case the program is fucked, or we guess the wrong signal thread.
|
|
msg-MIGUFLAGS = -D'MSG_IMPORTS=waittime 1000;'
|
|
|
|
# ick
|
|
MIGCOM = $(MIG) -cc cat - /dev/null
|
|
|
|
# Reply servers need special massaging of the code mig generates, to make
|
|
# them work correctly for error returns in some cases.
|
|
%_reply_S.h %_reply_S.c: %_reply.defs
|
|
$(CPP) $(CPPFLAGS) -DSERVERPREFIX=S_ -x c $< \
|
|
| $(MIGCOM) -sheader $*_reply_S.h -server $*_reply_S.raw -user /dev/null -header /dev/null \
|
|
&& $(AWK) -f $(srcdir)/reply_mig_hack.awk < $*_reply_S.raw > $*_reply_S.c
|
|
# Normal servers
|
|
%_S.h %_S.c: %.defs
|
|
$(CPP) $(CPPFLAGS) -DSERVERPREFIX=S_ -x c $< \
|
|
| $(MIGCOM) -sheader $*_S.h -server $*_S.c -user /dev/null -header /dev/null
|
|
# User rpc stubs
|
|
%_U.h %_U.c: %.defs
|
|
$(CPP) $(CPPFLAGS) $($*-MIGUFLAGS) -x c $< \
|
|
| $(MIGCOM) -sheader /dev/null -server /dev/null -user $*_U.c -header $*_U.h
|
|
|
|
NAT_GENERATED_FILES = notify_S.h notify_S.c \
|
|
process_reply_S.h process_reply_S.c \
|
|
msg_reply_S.h msg_reply_S.c msg_U.h msg_U.c \
|
|
exc_request_U.h exc_request_U.c exc_request_S.h exc_request_S.c
|