b292c78318
* Makefile.in (HAVE_NATIVE_GCORE_TARGET): New. (generated_files): Add gcore. (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or HAVE_NATIVE_GCORE_HOST. (gcore): New. * NEWS (Changes since GDB 7.6): Mention newly installed gcore. * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh, config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh, config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh, config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh: Add HAVE_NATIVE_GCORE_HOST. * configure: Regenerate. * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it. New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New AC_CONFIG_FILES for gcore. * configure.tgt: Add gdb_have_gcore to the initial comment. Set gdb_have_gcore. * gdb_gcore.sh: Rename to ... * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME substitutions. gdb/doc/ * Makefile.in (MAN1S): Add gcore.1. Remove "Host, target, and site specific Makefile fragments" comment. (@host_makefile_frag@, HAVE_NATIVE_GCORE_TARGET): New. (install-man1, uninstall-man1): Conditionalize gcore.1. (gcore.1): New. * gdb.texinfo (Man Pages): Add gcore man. (gcore man): New node.
37 lines
1.4 KiB
Text
37 lines
1.4 KiB
Text
# Host: Intel 386 running the GNU Hurd
|
|
NATDEPFILES= i386gnu-nat.o gnu-nat.o core-regset.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
|