-#Copyright 1989, 1990, 1991, 1992, 1993 Free Software Foundation, Inc.
+#Copyright 1989, 1990, 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
# This file is part of GDB.
AR_FLAGS = qv
RANLIB = ranlib
-M_INSTALL=@:
-M_UNINSTALL=@:
-
# Flags that describe where you can find the termcap library.
# This can be overridden in the host Makefile fragment file.
TERMCAP = -ltermcap
# -traditional flag. Otherwise the ioctl calls in inflow.c
# will be incorrectly compiled. The "fixincludes" script in the gcc
# distribution will fix your include files up.
-#CC=cc
#CC=gcc -traditional
-GCC=gcc
# Directory containing source files. Don't clean up the spacing,
# this exact string is matched for by the "configure" script.
ADD_FILES = $(REGEX) $(XM_ADD_FILES) $(TM_ADD_FILES) $(NAT_ADD_FILES)
ADD_DEPS = $(REGEX1) $(XM_ADD_FILES) $(TM_ADD_FILES) $(NAT_ADD_FILES)
-VERSION = 4.11.1
+VERSION = 4.11.4
DIST=gdb
LINT=/usr/5bin/lint
LINTFLAGS= $(BFD_CFLAGS)
-RUNTEST=runtest
+RUNTEST = `if [ -f $${srcdir}/../dejagnu/runtest ] ; then \
+ echo $${srcdir}/../dejagnu/runtest ; else echo runtest; \
+ fi`
+
RUNTESTFLAGS=
# This is ser-unix.o for any system which supports a v7/BSD/SYSV/POSIX
# Flags that we pass when building the testsuite.
CC_FOR_TARGET = ` \
- if [ -f $${rootme}/../gcc/Makefile ] ; then \
+ if [ -f $${rootme}/../gcc/xgcc ] ; then \
echo $${rootme}/../gcc/xgcc -B$${rootme}/../gcc/; \
else \
if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
mem-break.c minsyms.c mipsread.c nlmread.c objfiles.c parse.c \
printcmd.c remote.c source.c stabsread.c stack.c symfile.c symmisc.c \
symtab.c target.c thread.c typeprint.c utils.c valarith.c valops.c \
- valprint.c values.c serial.c ser-unix.c
+ valprint.c values.c serial.c ser-unix.c mdebugread.c
# Files that are not source code, but need to go into
# gdb-$(VERSION).tar.Z.
NONSRC = Makefile.in configure.in ChangeLog ChangeLog-9091 \
- ChangeLog-92 ChangeLog-3.x gdb.1 refcard.ps README TODO TAGS NEWS \
+ ChangeLog-92 ChangeLog-93 ChangeLog-3.x \
+ gdb.1 refcard.ps README TODO TAGS NEWS \
Projects .gdbinit COPYING $(YYFILES) copying.c copying.awk \
saber.suppress standalone.c stuff.c kdb-start.c gcc.patch \
nindy-share/Makefile nindy-share/VERSION nindy-share/README \
inferior_h = inferior.h $(breakpoint_h)
-# Header files that are not named in config/*/* Makefile fragments go
-# into HFILES.
+# Header files that need to have srcdir added.
-HFILES = buildsym.h call-cmds.h coff-solib.h defs.h environ.h $(gdbcmd_h) \
+HFILES_NO_SRCDIR = buildsym.h call-cmds.h coff-solib.h defs.h dst.h environ.h \
+ $(gdbcmd_h) \
$(gdbcore_h) gdb-stabs.h $(inferior_h) language.h minimon.h monitor.h \
objfiles.h parser-defs.h partial-stab.h serial.h signals.h solib.h \
symfile.h stabsread.h target.h terminal.h typeprint.h xcoffsolib.h \
c-lang.h ch-lang.h m2-lang.h complaints.h ns32k-opcode.h valprint.h \
config/m68k/tm-m68k.h config/pa/tm-hppa.h config/i960/tm-i960.h \
- config/sparc/tm-sparc.h config/tm-sunos.h config/tm-sysv4.h \
- config/m68k/xm-m68k.h config/sparc/xm-sparc.h config/xm-sysv4.h \
- config/vax/xm-vax.h config/nm-m3.h config/nm-trash.h $(udiheaders) \
+ config/sparc/tm-sparc.h config/tm-lynx.h config/tm-sunos.h \
+ config/tm-sysv4.h \
+ config/m68k/xm-m68k.h config/sparc/xm-sparc.h \
+ config/xm-lynx.h config/xm-sysv4.h \
+ config/vax/xm-vax.h config/nm-m3.h config/nm-trash.h \
29k-share/udi/udiids.h 29k-share/udi_soc nindy-share/b.out.h \
nindy-share/block_io.h nindy-share/coff.h \
nindy-share/env.h nindy-share/stop.h \
vx-share/xdr_ptrace.h vx-share/xdr_rdb.h thread.h \
$(remote_utils_h)
+# Header files that already have srcdir in them.
+
+HFILES_WITH_SRCDIR = $(udiheaders)
+
+
# GDB "info" files, which should be included in their entirety
INFOFILES = gdb.info*
SOURCES = $(SFILES) $(ALLDEPFILES) $(YYFILES)
# Don't include YYFILES (*.tab.c) because we already include *.y in SFILES,
# and it's more useful to see it in the .y file.
-TAGFILES = $(SFILES) $(HFILES) $(ALLDEPFILES) $(ALLPARAM) $(POSSLIBS)
+TAGFILES_NO_SRCDIR = $(SFILES) $(HFILES_NO_SRCDIR) $(ALLDEPFILES) \
+ $(ALLPARAM) $(POSSLIBS)
+TAGFILES_WITH_SRCDIR = $(HFILES_WITH_SRCDIR)
-TARFILES = $(SFILES) $(HFILES) $(NONSRC) $(ALLDEPFILES) $(ALLCONFIG) \
+TARFILES = $(SFILES) $(HFILES_NO_SRCDIR) $(HFILES_WITH_SRCDIR) \
+ $(NONSRC) $(ALLDEPFILES) $(ALLCONFIG) \
$(ALLPARAM) $(INFOFILES) $(POSSLIBS) $(REMOTE_EXAMPLES)
dwarfread.o mipsread.o stabsread.o core.o c-lang.o ch-lang.o m2-lang.o \
complaints.o typeprint.o c-typeprint.o ch-typeprint.o m2-typeprint.o \
c-valprint.o cp-valprint.o ch-valprint.o m2-valprint.o nlmread.o \
- serial.o
+ serial.o mdebugread.o
RAPP_OBS = rgdb.o rudp.o rserial.o serial.o udp.o $(XDEPFILES)
@$(MAKE) $(FLAGS_TO_PASS) DO=all "DODIRS=`echo $(SUBDIRS) | sed 's/testsuite//'`" subdir_do
installcheck:
+
+# The check target can not use subdir_do, because subdir_do does not
+# use TARGET_FLAGS_TO_PASS.
check: force
- @rootme=`pwd`; export rootme; $(MAKE) $(TARGET_FLAGS_TO_PASS) DO=check DODIRS=testsuite subdir_do
+ @if [ -f testsuite/Makefile ]; then \
+ rootme=`pwd`; export rootme; \
+ cd testsuite; \
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) check; \
+ else true; fi
+
info dvi install-info clean-info: force
@$(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do
# We do this by grepping through sources. If that turns out to be too slow,
# maybe we could just require every .o file to have an initialization routine
# of a given name (remote-udi.o -> _initialize_remote_udi, etc.).
+#
+# Formatting conventions: The name of the _initialize_* routines must start
+# in column zero, and must not be inside #if.
init.c: $(OBS) $(TSOBS)
@echo Making init.c
@rm -f init.c-tmp
-e '/xdr_rdb.o/d' \
-e '/udr.o/d' \
-e '/udip2soc.o/d' \
+ -e '/udi2go32.o/d' \
-e '/version.o/d' \
-e '/[a-z0-9A-Z_]*-exp.tab.o/d' \
-e 's/\.o/.c/'` ; \
- sed <$(srcdir)/$$filename >>init.c-tmp -n \
- -e '/^_initialize_[a-z_0-9A-Z]* *(/s/^\([a-z_0-9A-Z]*\).*/ {extern void \1 (); \1 ();}/p' ; \
+ case $$filename in \
+ "") ;; \
+ *) sed <$(srcdir)/$$filename >>init.c-tmp -n \
+ -e '/^_initialize_[a-z_0-9A-Z]* *(/s/^\([a-z_0-9A-Z]*\).*/ {extern void \1 (); \1 ();}/p' ; ;; \
+ esac ; \
done
@echo '}' >>init.c-tmp
@mv init.c-tmp init.c
-lc $(CLIBS)
# Put the proper machine-specific files first, so M-. on a machine
-# specific routine gets the one for the correct machine.
-TAGS:
+# specific routine gets the one for the correct machine. (FIXME: those
+# files go in twice; we should be removing them from the main list).
+
+# TAGS depends on all the files that go into it so you can rebuild TAGS
+# with `make TAGS' and not have to say `rm TAGS' first.
+
+TAGS: $(TAGFILES_NO_SRCDIR) $(TAGFILES_WITH_SRCDIR)
etags `find $(srcdir)/config \( -name $(TM_FILE) \
-o -name $(XM_FILE) \
-o -name $(NAT_FILE) \) -print` \
- `(for i in $(DEPFILES) $(TAGFILES); do \
+ `(for i in $(DEPFILES) $(TAGFILES_NO_SRCDIR); do \
echo $(srcdir)/$$i ; \
- done) | sed -e 's/\.o$$/\.c/'` \
+ done ; for i in $(TAGFILES_WITH_SRCDIR); do \
+ echo $$i ; \
+ done) | sed -e 's/\.o$$/\.c/'`
tags: TAGS
find proto-testsuite.dir -name Makefile -exec rm {} \;
find proto-testsuite.dir -name config.status -exec rm {} \;
-clean:
+clean mostlyclean:
@$(MAKE) $(FLAGS_TO_PASS) DO=clean "DODIRS=$(SUBDIRS)" subdir_do
rm -f *.o $(ADD_FILES) *~ init.c-tmp
rm -f init.c version.c
realclean: clean
@$(MAKE) $(FLAGS_TO_PASS) DO=realclean "DODIRS=$(SUBDIRS)" subdir_do
- rm -f c-exp.tab.c m2-exp.tab.c ch-exp.tab.c TAGS
+ rm -f c-exp.tab.c m2-exp.tab.c ch-exp.tab.c TAGS $(INFOFILES)
rm -f nm.h tm.h xm.h config.status
rm -f y.output yacc.acts yacc.tmp
rm -f Makefile
version.c: Makefile
echo 'char *version = "$(VERSION)";' >version.c
- echo 'char *host_canonical = "$(host_canonical)";' >> version.c
- echo 'char *target_canonical = "$(target_canonical)";' >> version.c
+ echo 'char *host_name = "$(host_alias)";' >> version.c
+ echo 'char *target_name = "$(target_alias)";' >> version.c
# c-exp.tab.c is generated in objdir from c-exp.y if it doesn't exist
# in srcdir, then compiled in objdir to c-exp.tab.o.
# why they are separate from the lists of files above.
ALLDEPFILES = 29k-share/udi/udip2soc.c 29k-share/udi/udr.c \
+ 29k-share/udi/udi2go32.c \
a29k-pinsn.c a29k-tdep.c a68v-nat.c alpha-nat.c alpha-tdep.c \
altos-xdep.c arm-convert.s \
arm-pinsn.c arm-tdep.c arm-xdep.c coff-solib.c convex-pinsn.c \
convex-tdep.c \
convex-xdep.c core-svr4.c coredep.c corelow.c dcache.c delta68-nat.c \
- dpx2-nat.c exec.c fork-child.c \
+ dpx2-nat.c dstread.c exec.c fork-child.c \
go32-xdep.c gould-pinsn.c gould-xdep.c h8300-tdep.c h8500-tdep.c \
hp300ux-nat.c hppa-pinsn.c hppa-tdep.c hppab-nat.c hppah-nat.c \
i386-pinsn.c i386-tdep.c i386b-nat.c i386mach-nat.c i386v-nat.c \
- i386aix-nat.c i386m3-nat.c i386v4-nat.c i386ly-nat.c i386ly-tdep.c \
+ i386aix-nat.c i386m3-nat.c i386v4-nat.c i386ly-tdep.c \
i387-tdep.c \
i960-pinsn.c i960-tdep.c \
- infptrace.c inftarg.c irix4-nat.c isi-xdep.c m3-nat.c \
- m68k-pinsn.c m68k-tdep.c m68kly-nat.c \
+ infptrace.c inftarg.c irix4-nat.c irix5-nat.c isi-xdep.c \
+ lynx-nat.c m3-nat.c \
+ m68k-pinsn.c m68k-tdep.c \
m88k-nat.c m88k-pinsn.c m88k-tdep.c mips-nat.c mips-pinsn.c \
mips-tdep.c mipsm3-nat.c news-xdep.c \
nindy-share/Onindy.c nindy-share/nindy.c \
nindy-share/ttyflush.c nindy-tdep.c \
ns32k-pinsn.c ns32km3-nat.c osfsolib.c \
paread.c procfs.c pyr-pinsn.c pyr-tdep.c pyr-xdep.c \
- remote-adapt.c remote-bug.c remote-eb.c remote-es.c \
+ remote-adapt.c remote-bug.c remote-e7000.c remote-eb.c remote-es.c \
remote-hms.c remote-mips.c \
remote-mm.c remote-mon.c remote-nindy.c remote-sim.c \
remote-st.c remote-utils.c dcache.c \
config/m68k/nm-apollo68v.h config/m68k/nm-delta68.h \
config/m68k/nm-dpx2.h config/m68k/nm-hp300bsd.h \
config/m68k/nm-hp300hpux.h config/m68k/nm-news.h \
+ config/m68k/nm-m68klynx.h \
config/m68k/nm-sun2.h \
config/m68k/nm-sun3.h config/m68k/tm-3b1.h config/m68k/tm-altos.h \
+ config/m68k/tm-apollo68b.h \
config/m68k/tm-amix.h config/m68k/tm-delta68.h \
config/m68k/tm-dpx2.h config/m68k/tm-es1800.h \
config/m68k/tm-hp300bsd.h config/m68k/tm-hp300hpux.h \
- config/m68k/tm-isi.h config/m68k/tm-m68k-em.h \
+ config/m68k/tm-isi.h config/m68k/tm-m68klynx.h \
+ config/m68k/tm-m68k-em.h \
config/m68k/tm-monitor.h \
config/m68k/tm-news.h config/m68k/tm-os68k.h config/m68k/tm-st2000.h \
config/m68k/tm-sun2.h config/m68k/tm-sun2os4.h config/m68k/tm-sun3.h \
config/m68k/xm-apollo68b.h config/m68k/xm-apollo68v.h \
config/m68k/xm-delta68.h config/m68k/xm-dpx2.h \
config/m68k/xm-hp300bsd.h config/m68k/xm-hp300hpux.h \
- config/m68k/xm-isi.h config/m68k/xm-news.h config/m68k/xm-news1000.h \
+ config/m68k/xm-isi.h config/m68k/xm-m68klynx.h \
+ config/m68k/xm-news.h config/m68k/xm-news1000.h \
config/m68k/xm-sun2.h config/m68k/xm-sun3.h config/m68k/xm-sun3os4.h \
config/m88k/nm-delta88v4.h config/m88k/nm-m88k.h \
config/m88k/tm-delta88.h \
config/m88k/xm-delta88.h config/m88k/xm-delta88v4.h \
config/m88k/xm-dgux.h config/m88k/xm-m88k.h \
config/mips/nm-irix3.h \
- config/mips/nm-irix4.h config/mips/nm-mips.h config/mips/nm-riscos.h \
+ config/mips/nm-irix4.h config/mips/nm-irix5.h \
+ config/mips/nm-mips.h config/mips/nm-riscos.h \
config/mips/nm-news-mips.h config/mips/tm-bigmips.h \
- config/mips/tm-irix3.h config/mips/tm-mips.h config/mips/tm-mipsm3.h \
+ config/mips/tm-idt.h config/mips/tm-idtl.h \
+ config/mips/tm-irix3.h config/mips/tm-irix5.h \
+ config/mips/tm-mips.h config/mips/tm-mipsm3.h \
config/mips/xm-irix3.h \
- config/mips/xm-irix4.h config/mips/xm-makeva.h config/mips/xm-mips.h \
+ config/mips/xm-irix4.h config/mips/xm-irix5.h \
+ config/mips/xm-makeva.h config/mips/xm-mips.h \
config/mips/xm-mipsm3.h \
- config/mips/xm-riscos.h config/mips/xm-news-mips.h config/nm-sysv4.h \
+ config/mips/xm-riscos.h config/mips/xm-news-mips.h \
+ config/nm-lynx.h config/nm-sysv4.h \
config/none/nm-none.h config/none/tm-none.h config/none/xm-none.h \
config/ns32k/nm-umax.h \
config/ns32k/tm-ns32km3.h \
config/pyr/tm-pyr.h \
config/pyr/xm-pyr.h config/romp/xm-rtbsd.h config/rs6000/nm-rs6000.h \
config/rs6000/tm-rs6000.h config/rs6000/xm-rs6000.h config/sh/tm-sh.h \
- config/sparc/nm-sun4os4.h config/sparc/tm-sparclite.h \
+ config/sparc/nm-sun4os4.h config/sparc/nm-sparclynx.h \
+ config/sparc/tm-sparclite.h config/sparc/tm-sparclynx.h \
config/sparc/tm-spc-em.h config/sparc/tm-sun4os4.h \
config/sparc/tm-sun4sol2.h config/sparc/tm-vxsparc.h \
+ config/sparc/xm-sparclynx.h \
config/sparc/xm-sun4os4.h config/sparc/xm-sun4sol2.h \
config/tahoe/tm-tahoe.h config/tahoe/xm-tahoe.h config/vax/nm-vax.h \
config/vax/tm-vax.h config/vax/xm-vaxbsd.h config/vax/xm-vaxult.h \
ALLCONFIG = config/a29k/a29k-kern.mt config/a29k/a29k-udi.mt \
config/a29k/a29k.mt config/a29k/ultra3.mh config/a29k/ultra3.mt \
config/alpha/alpha-osf1.mh config/alpha/alpha-osf1.mt \
+ config/alpha/alpha-nw.mt \
config/arm/arm.mh config/arm/arm.mt config/convex/convex.mh \
config/convex/convex.mt config/gould/np1.mh config/gould/np1.mt \
config/gould/pn.mh config/gould/pn.mt config/h8300/h8300hms.mt \
config/i960/nindy960.mt config/i960/vxworks960.mt config/m68k/3b1.mh \
config/m68k/3b1.mt config/m68k/altos.mh config/m68k/altos.mt \
config/m68k/amix.mh config/m68k/amix.mt config/m68k/apollo68b.mh \
+ config/m68k/apollo68b.mt \
config/m68k/apollo68v.mh config/m68k/delta68.mh \
config/m68k/delta68.mt config/m68k/dpx2.mh config/m68k/dpx2.mt \
config/m68k/es1800.mt config/m68k/hp300bsd.mh \
config/mips/bigmips.mt config/mips/decstation.mh \
config/mips/decstation.mt config/mips/idt.mt config/mips/idtl.mt \
config/mips/irix3.mh config/mips/irix3.mt config/mips/irix4.mh \
+ config/mips/irix5.mh config/mips/irix5.mt \
config/mips/littlemips.mh config/mips/littlemips.mt \
config/mips/mipsm3.mh config/mips/mipsm3.mt \
config/mips/news-mips.mh config/mips/riscos.mh \
maint.o: maint.c $(defs_h) $(gdbcmd_h) $(gdbtypes_h) $(symtab_h) language.h \
$(expression_h)
+mdebugread.o: mdebugread.c buildsym.h complaints.h $(bfd_h) $(defs_h) \
+ $(expression_h) gdb-stabs.h $(gdbcore_h) $(gdbtypes_h) language.h \
+ objfiles.h partial-stab.h stabsread.h symfile.h $(symtab_h)
+
mem-break.o: mem-break.c $(defs_h)
minsyms.o: minsyms.c $(bfd_h) $(defs_h) objfiles.h symfile.h \
target.o: target.c $(bfd_h) $(defs_h) $(gdbcmd_h) $(inferior_h) \
objfiles.h symfile.h target.h
-thread.o: thread.c $(defs_h) thread.h
+thread.o: thread.c $(defs_h) thread.h $(gdbcmd_h)
typeprint.o: typeprint.c $(defs_h) $(expression_h) $(gdbcmd_h) \
$(gdbcore_h) $(gdbtypes_h) language.h $(symtab_h) target.h \