Update build to 4.17.

This commit is contained in:
tv 1999-02-10 22:04:51 +00:00
parent 99fb54992d
commit ca264aa174
12 changed files with 144 additions and 188 deletions

View File

@ -1,116 +1,104 @@
# $NetBSD: Makefile,v 1.22 1999/02/10 16:15:21 tron Exp $
TOP= $(.CURDIR)/../..
dist= $(TOP)/dist
srcdir= $(dist)/gdb
.PATH: $(srcdir)
.if (${MACHINE_ARCH} != "powerpc") && (${MACHINE_ARCH} != "mipseb")
PROG= gdb
BFDOBJ!=cd ${TOP}/lib/libbfd; \
printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}\n" | ${MAKE} -s -f-
# Note: nm.h, tm.h are in $(.OBJDIR),
# and config.h, xm.h are in $(.CURDIR)
INCLS+= -I$(.OBJDIR) -I$(.CURDIR)
# GDB_CFLAGS
INCLS+= -I$(srcdir) -I$(srcdir)/config
# READLINE_CFLAGS
INCLS+= -I$(dist)/readline
# BFD_CFLAGS: Make sure we get the installed bfd.h
INCLS+= -I${BFDOBJ}
INCLS+= -I$(dist)/bfd
INCLS+= -I$(dist)/include
# $NetBSD: Makefile,v 1.23 1999/02/10 22:04:51 tv Exp $
# for OBJECT_FMT
.include <bsd.own.mk>
# misc. -DHAVE_TERMIOS
# KERNEL_DEBUG no longer used. See ADDITIONAL_OPTIONS*
DEFS= -DNO_MMALLOC
.if ${OBJECT_FMT} == "ELF"
DEFS+= -DSVR4_SHARED_LIBS
PROG= gdb
MAN= gdb.1
SRCS= main.c ${COMMON_SRCS} annotate.c inflow.c gnu-regex.c
OBJS= init.o
DPSRCS= nm.h tm.h
CLEANFILES= init.c
CPPFLAGS+= -I. -I${.CURDIR} -I${DIST}/gdb/config -I${DIST}/gdb \
-I${BFDOBJ} -I${DIST}/bfd -I${DIST}/include \
-DHOST_NAME=\"${MACHINE_GNU_ARCH}--netbsd\" \
-DTARGET_NAME=\"${MACHINE_GNU_ARCH}--netbsd\"
.if (${OBJECT_FMT} == "ELF")
CPPFLAGS+= -DSVR4_SHARED_LIBS
.endif
CPPFLAGS+= $(INCLS) $(DEFS)
.include "_${MACHINE_ARCH:S/^mips$/mipsel/}.mk"
# Any NetBSD: (i386 m68k ns32k sparc vax)
NDEP_CMN?= infptrace.c inftarg.c fork-child.c corelow.c kcore-nbsd.c
XDEP_FILES= ser-tcp.c ser-unix.c
REMOTE_SRCS = remote.c dcache.c remote-utils.c
DEPFILES = $(TDEP_FILES) $(XDEP_FILES) \
$(NDEP_CMN) $(NDEP_FILES) $(REMOTE_SRCS)
YYSRCS= c-exp.y f-exp.y m2-exp.y
LDADD+= -ledit -lkvm -ltermcap -L${BFDOBJ} -lbfd
DPADD+= ${LIBEDIT} ${LIBKVM} ${LIBTERMCAP} ${BFDOBJ}/libbfd_pic.a
# This exists only for easy comparison with the GNU Makefile.
COMMON_SRCS = version.c blockframe.c breakpoint.c findvar.c stack.c thread.c \
source.c values.c eval.c valops.c valarith.c valprint.c printcmd.c \
symtab.c symfile.c symmisc.c infcmd.c infrun.c command.c \
expprint.c environ.c gdbtypes.c copying.c $(DEPFILES) \
mem-break.c target.c parse.c language.c $(YYSRCS) buildsym.c \
expprint.c environ.c gdbtypes.c copying.c ${DEPFILES} \
mem-break.c target.c parse.c language.c ${YYSRCS} buildsym.c \
exec.c bcache.c objfiles.c minsyms.c maint.c demangle.c \
dbxread.c coffread.c elfread.c \
dwarfread.c mipsread.c stabsread.c corefile.c \
c-lang.c ch-exp.c ch-lang.c f-lang.c m2-lang.c \
dwarfread.c dwarf2read.c mipsread.c stabsread.c corefile.c \
c-lang.c ch-exp.c ch-lang.c f-lang.c \
jv-lang.c jv-valprint.c jv-typeprint.o m2-lang.c \
scm-exp.c scm-lang.c scm-valprint.c complaints.c typeprint.c \
c-typeprint.c ch-typeprint.c f-typeprint.c m2-typeprint.c \
c-valprint.c cp-valprint.c ch-valprint.c f-valprint.c m2-valprint.c \
nlmread.c serial.c mdebugread.c os9kread.c top.c utils.c callback.c
SRCS= main.c $(COMMON_SRCS) annotate.c inflow.c gnu-regex.c
OBJS= init.o
LDADD+= -ledit
DPADD+= $(LIBEDIT)
LDADD+= -L${BFDOBJ} -lbfd
DPADD+= ${BFDOBJ}/libbfd.a
LDADD+= -lkvm
DPADD+= $(LIBKVM)
LDADD+= -ltermcap
DPADD+= $(LIBTERMCAP)
DPSRCS+= nm.h tm.h
nlmread.c serial.c mdebugread.c os9kread.c top.c utils.c
YYSRCS= c-exp.y f-exp.y jv-exp.y m2-exp.y
REMOTE_SRCS = remote.c dcache.c remote-utils.c tracepoint.c
DEPFILES = ${TDEPFILES.${MACHINE_ARCH}} ${XDEPFILES} ${SER_HARDWIRE} ${NATDEPFILES} \
${REMOTE_SRCS} ${SIM_SRCS}
XDEPFILES= ser-tcp.c
SER_HARDWIRE = ser-unix.c
NATDEPFILES= infptrace.c inftarg.c fork-child.c corelow.c ${NATDEPFILES.${MACHINE_ARCH}}
.if (${MACHINE_ARCH} != "arm32") && (${MACHINE_ARCH} != "powerpc")
NATDEPFILES+= kcore-nbsd.c
.endif
.if !defined(NOPIC)
NATDEPFILES+= solib.c
.endif
MAN= gdb.1
NATDEPFILES.alpha= alphanbsd-nat.c
TDEPFILES.alpha= alpha-tdep.c
NATDEPFILES.arm32= armb-nat.c arm-convert.s
TDEPFILES.arm32= arm-tdep.c
NATDEPFILES.i386= i386nbsd-nat.c
TDEPFILES.i386= i386-tdep.c i387-tdep.c
NATDEPFILES.m68k= m68knbsd-nat.c
TDEPFILES.m68k= m68k-tdep.c
NATDEPFILES.mipseb= mipsnbsd-nat.c
TDEPFILES.mipseb= mips-tdep.c
NATDEPFILES.mipsel= mipsnbsd-nat.c
TDEPFILES.mipsel= mips-tdep.c
NATDEPFILES.ns32k= ns32knbsd-nat.c
TDEPFILES.ns32k= ns32k-tdep.c
NATDEPFILES.powerpc= rs6000-nat.c
TDEPFILES.powerpc= rs6000-tdep.c
NATDEPFILES.sparc= sparcnbsd-nat.c
TDEPFILES.sparc= sparc-tdep.c
NATDEPFILES.vax= vaxnbsd-nat.c
TDEPFILES.vax= vax-tdep.c
DIST= ${.CURDIR}/../../dist
BFDOBJ!= cd ${.CURDIR}/../../lib/libbfd && ${MAKE} -s print-objdir
.PATH: ${DIST}/gdb
.include <bsd.prog.mk>
# Note: this rule does something similar to the gcc "collect" program,
# by scanning all the objects for initialization functions, collecting
# them all into the generated init.c file, which is called by main.
CLEANFILES+= init.c
init.o : $(OBJS:S/init.o//)
-rm -f init.c
sh $(.CURDIR)/mkinit.sh $(OBJS:S/init.o//) > init.c
init.o: ${OBJS:Ninit.o} Makefile
@-rm -f init.c
sh ${.CURDIR}/mkinit.sh ${OBJS:Ninit.o} >init.c
${COMPILE.c} init.c
# Need these headers before any objects.
$(OBJS) : nm.h tm.h xm.h
${OBJS}: nm.h tm.h xm.h
nm.h : $(srcdir)/$(NM_FILE)
-rm -f $@
cp -p $(srcdir)/$(NM_FILE) $@
nm.h: ${DIST}/gdb/config/${MACHINE_GNU_ARCH}/nm-nbsd.h
@-rm -f $@
cp $> $@
tm.h : $(srcdir)/$(TM_FILE)
-rm -f $@
cp -p $(srcdir)/$(TM_FILE) $@
version.o : version.c
$(CC) $(CFLAGS) $(CPPFLAGS) \
-DHOST_NAME=\"${MACHINE_GNU_ARCH}--netbsd\" \
-DTARGET_NAME=\"${MACHINE_GNU_ARCH}--netbsd\" \
-c $(.IMPSRC)
tm.h: ${DIST}/gdb/config/${MACHINE_GNU_ARCH}/tm-nbsd.h
@-rm -f $@
cp $> $@

View File

@ -1,10 +0,0 @@
# $NetBSD: _alpha.mk,v 1.2 1997/09/29 15:37:22 gwr Exp $
# From gdb/config/alpha/nbsd.mh
NM_FILE= config/alpha/nm-nbsd.h
NDEP_FILES= alphanbsd-nat.c
# From gdb/config/alpha/nbsd.mt
TM_FILE= config/alpha/tm-nbsd.h
TDEP_FILES= alpha-tdep.c solib.c

View File

@ -1,12 +0,0 @@
# $NetBSD: _arm32.mk,v 1.3 1998/05/22 17:18:02 tv Exp $
# From gdb/config/arm/arm.mh
NM_FILE= config/arm/nm-nbsd.h
NDEP_FILES= armb-nat.c arm-convert.s
# From gdb/config/arm/arm.mt
TM_FILE= config/arm/tm-nbsd.h
TDEP_FILES= arm-tdep.c solib.c
# Override this for now, to ommit: kcore-nbsd.c
NDEP_CMN= infptrace.c inftarg.c fork-child.c corelow.c

View File

@ -1,10 +0,0 @@
# $NetBSD: _i386.mk,v 1.2 1997/09/29 15:37:23 gwr Exp $
# From gdb/config/i386/nbsd.mh
NM_FILE= config/i386/nm-nbsd.h
NDEP_FILES= i386nbsd-nat.c
# From gdb/config/i386/nbsd.mt
TM_FILE= config/i386/tm-nbsd.h
TDEP_FILES= i386-tdep.c i387-tdep.c solib.c

View File

@ -1,10 +0,0 @@
# $NetBSD: _m68k.mk,v 1.2 1997/09/29 15:37:23 gwr Exp $
# From gdb/config/m68k/nbsd.mh
NM_FILE= config/m68k/nm-nbsd.h
NDEP_FILES= m68knbsd-nat.c
# From gdb/config/m68k/nbsd.mt
TM_FILE= config/m68k/tm-nbsd.h
TDEP_FILES= m68k-tdep.c solib.c

View File

@ -1,9 +0,0 @@
# $NetBSD: _mipsel.mk,v 1.1 1998/07/27 02:35:13 tv Exp $
# From gdb/config/mips/nbsd.mh
NM_FILE= config/mips/nm-nbsd.h
NDEP_FILES= mipsnbsd-nat.c
# From gdb/config/mips/nbsd.mt
TM_FILE= config/mips/tm-nbsd.h
TDEP_FILES= mips-tdep.c solib.c

View File

@ -1,10 +0,0 @@
# $NetBSD: _ns32k.mk,v 1.2 1997/09/29 15:37:24 gwr Exp $
# gdb/config/ns32k/nbsd.mh
NM_FILE= config/ns32k/nm-nbsd.h
NDEP_FILES= ns32knbsd-nat.c
# gdb/config/ns32k/nbsd.mt
TM_FILE= config/ns32k/tm-nbsd.h
TDEP_FILES= ns32k-tdep.c solib.c

View File

@ -1,12 +0,0 @@
# $NetBSD: _powerpc.mk,v 1.2 1997/10/19 04:31:58 gwr Exp $
# From gdb/config/powerpc/nbsd.mh
NM_FILE= config/powerpc/nm-nbsd.h
NDEP_FILES= rs6000-nat.c
# From gdb/config/powerpc/nbsd.mt
TM_FILE= config/powerpc/tm-nbsd.h
TDEP_FILES= rs6000-tdep.c solib.c
# Override this for now, to ommit: kcore-nbsd.c
NDEP_CMN= infptrace.c inftarg.c fork-child.c corelow.c

View File

@ -1,10 +0,0 @@
# $NetBSD: _sparc.mk,v 1.2 1997/09/29 15:37:25 gwr Exp $
# From gdb/config/sparc/nbsd.mh
NM_FILE= config/sparc/nm-nbsd.h
NDEP_FILES= sparcnbsd-nat.c
# From gdb/config/sparc/nbsd.mt
TM_FILE= config/sparc/tm-nbsd.h
TDEP_FILES= sparc-tdep.c solib.c

View File

@ -1,10 +0,0 @@
# $NetBSD: _vax.mk,v 1.2 1997/09/29 15:37:26 gwr Exp $
# From gdb/config/vax/nbsd.mh
NM_FILE= config/vax/nm-nbsd.h
NDEP_FILES= vaxnbsd-nat.c
# From gdb/config/vax/nbsd.mt
TM_FILE= config/vax/tm-nbsd.h
TDEP_FILES= vax-tdep.c solib.c

View File

@ -1,6 +1,18 @@
/* config.h. Generated automatically by configure. */
/* config.in. Generated automatically from configure.in by autoheader. */
/* Whether malloc must be declared even if <stdlib.h> is included. */
/* #undef NEED_DECLARATION_MALLOC */
/* Whether realloc must be declared even if <stdlib.h> is included. */
/* #undef NEED_DECLARATION_REALLOC */
/* Whether free must be declared even if <stdlib.h> is included. */
/* #undef NEED_DECLARATION_FREE */
/* Whether strerror must be declared even if <string.h> is included. */
/* #undef NEED_DECLARATION_STRERROR */
/* Define if on AIX 3.
System headers sometimes define this.
We just want to avoid a redefinition error message. */
@ -8,6 +20,9 @@
/* #undef _ALL_SOURCE */
#endif
/* Define to empty if the keyword does not work. */
/* #undef const */
/* Define if the `long double' type works. */
#define HAVE_LONG_DOUBLE 1
@ -24,6 +39,9 @@
/* Define if you need to in order for stat and other things to work. */
/* #undef _POSIX_SOURCE */
/* Define as the return type of signal handlers (int or void). */
#define RETSIGTYPE void
/* Define if the `S_IS*' macros in <sys/stat.h> do not work properly. */
/* #undef STAT_MACROS_BROKEN */
@ -36,20 +54,54 @@
/* Define if gregset_t type is available. */
/* #undef HAVE_GREGSET_T */
/* Define if the `long long' type works. */
#define CC_HAS_LONG_LONG 1
/* Define if the "ll" format works to print long long ints. */
#define PRINTF_HAS_LONG_LONG 1
/* Define if the "%Lg" format works to print long doubles. */
#define PRINTF_HAS_LONG_DOUBLE 1
/* Define if the "%Lg" format works to scan long doubles. */
#define SCANF_HAS_LONG_DOUBLE 1
/* Define if using Solaris thread debugging. */
/* #undef HAVE_THREAD_DB_LIB */
/* Define on a GNU/Linux system to work around problems in sys/procfs.h. */
/* #undef START_INFERIOR_TRAPS_EXPECTED */
/* #undef sys_quotactl */
/* Define if you have HPUX threads */
/* #undef HAVE_HPUX_THREAD_SUPPORT */
/* Define if you want to use the memory mapped malloc package (mmalloc). */
/* #undef USE_MMALLOC */
/* Define if the runtime uses a routine from mmalloc before gdb has a chance
to initialize mmalloc, and we want to force checking to be used anyway.
This may cause spurious memory corruption messages if the runtime tries
to explicitly deallocate that memory when gdb calls exit. */
/* #undef MMCHECK_FORCE */
/* Define if you have the getpagesize function. */
#define HAVE_GETPAGESIZE 1
/* Define if you have the poll function. */
#define HAVE_POLL 1
/* Define if you have the sbrk function. */
#define HAVE_SBRK 1
/* Define if you have the select function. */
#define HAVE_SELECT 1
/* Define if you have the setpgid function. */
#define HAVE_SETPGID 1
/* Define if you have the valloc function. */
#define HAVE_VALLOC 1
/* Define if you have the sigaction function. */
#define HAVE_SIGACTION 1
/* Define if you have the <endian.h> header file. */
/* #undef HAVE_ENDIAN_H */
@ -63,12 +115,18 @@
/* Define if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1
/* Define if you have the <objlist.h> header file. */
/* #undef HAVE_OBJLIST_H */
/* Define if you have the <sgtty.h> header file. */
#define HAVE_SGTTY_H 1
/* Define if you have the <stddef.h> header file. */
#define HAVE_STDDEF_H 1
/* Define if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1
/* Define if you have the <string.h> header file. */
#define HAVE_STRING_H 1
@ -89,3 +147,6 @@
/* Define if you have the dl library (-ldl). */
/* #undef HAVE_LIBDL */
/* Define if you have the m library (-lm). */
#define HAVE_LIBM 1

View File

@ -1,5 +1,5 @@
/* $NetBSD: version.c,v 1.1.1.1 1997/09/26 04:37:02 gwr Exp $ */
/* $NetBSD: version.c,v 1.2 1999/02/10 22:04:54 tv Exp $ */
char *version = "4.16";
char *version = "4.17";
char *host_name = HOST_NAME;
char *target_name = TARGET_NAME;