diff --git a/gdb/.Sanitize b/gdb/.Sanitize index f0556e2c487..7cd9a148fc9 100644 --- a/gdb/.Sanitize +++ b/gdb/.Sanitize @@ -15,7 +15,7 @@ Do-first: -mpw_files="mpw-config.in mpw-make.in ser-mac.c mac-xdep.c mac-defs.h macgdb.r mpw-init.c ChangeLog.mpw" +mpw_files="mpw-config.in mpw-make.in ser-mac.c mac-xdep.c mac-defs.h macgdb.r ChangeLog.mpw" if ( echo $* | grep keep\-mpw > /dev/null ) ; then keep_these_too="${mpw_files} ${keep_these_too}" diff --git a/gdb/ChangeLog.mpw b/gdb/ChangeLog.mpw index e716e26972c..16119b48af5 100644 --- a/gdb/ChangeLog.mpw +++ b/gdb/ChangeLog.mpw @@ -1,3 +1,13 @@ +Tue Dec 13 16:32:09 1994 Stan Shebs + + * mpw-config.in (m68k-apple-macos, ppc-apple-macos, + i386-unknown-aout): New targets. + (mk.tmp): Add *DEPFILES definitions. + * mpw-make.in: Remove gC rules, clean up definitions for other + include files, bump version, fix bogus \ that should be \Option-d. + (init.c): Build correctly. + (mpw-init.c): Remove. + Mon Nov 7 00:46:22 1994 Jeff Law (law@snake.cs.utah.edu) * mpw-make.in (HFILES_NO_SRCDIR): Add somsolib.h diff --git a/gdb/mpw-config.in b/gdb/mpw-config.in index 574a5834397..758c65286c5 100644 --- a/gdb/mpw-config.in +++ b/gdb/mpw-config.in @@ -13,13 +13,27 @@ Duplicate -y "{MPW}"Interfaces:CIncludes:Serial.h MacSerial.h Echo "/* dummy */" >termio.h -If "{target_canonical}" =~ /mips-idt-ecoff/ +If "{target_canonical}" =~ /m68k-apple-macos/ + forward-include "{srcdir}"config:m68k:tm-mac.h tm.h + + forward-include "{srcdir}"config:m68k:tm-m68k.h 'm68k/tm-m68k.h' + + Set tdepfiles '"{o}"m68k-pinsn.c.o "{o}"m68k-tdep.c.o' +Else If "{target_canonical}" =~ /ppc-apple-macos/ + forward-include "{srcdir}"config:powerpc:tm-ppc.h tm.h + + Set tdepfiles '"{o}"ppc-tdep.c.o' +Else If "{target_canonical}" =~ /i386-unknown-aout/ + forward-include "{srcdir}"config:i386:tm-i386.h tm.h + + Set tdepfiles '"{o}"i386-tdep.c.o' +Else If "{target_canonical}" =~ /mips-idt-ecoff/ forward-include "{srcdir}"config:mips:tm-idt.h tm.h forward-include "{srcdir}"config:mips:tm-bigmips.h 'mips/tm-bigmips.h' forward-include "{srcdir}"config:mips:tm-mips.h 'mips/tm-mips.h' - Set tdepfiles '"{o}"mips-pinsn.c.o "{o}"mips-tdep.c.o "{o}"exec.c.o "{o}"remote-mips.c.o' + Set tdepfiles '"{o}"mips-pinsn.c.o "{o}"mips-tdep.c.o "{o}"remote-mips.c.o' End If If "{target_canonical}" != "{host_canonical}" @@ -27,3 +41,10 @@ If "{target_canonical}" != "{host_canonical}" Set natdepfiles " " End If +Echo '# From mpw-config.in' > "{o}"mk.tmp + +Echo "TDEPFILES = " {tdepfiles} >> "{o}"mk.tmp +Echo "XDEPFILES = " {xdepfiles} >> "{o}"mk.tmp +Echo "NATDEPFILES = " {nat_file} >> "{o}"mk.tmp + +Echo '# End from mpw-config.in' >> "{o}"mk.tmp diff --git a/gdb/mpw-make.in b/gdb/mpw-make.in index 73568ad91b7..43ef4aa4768 100644 --- a/gdb/mpw-make.in +++ b/gdb/mpw-make.in @@ -7,8 +7,6 @@ NAT_CDEPS = CC_LD = Link -gC = gC1 - s = "{srcdir}" o = : @@ -22,9 +20,6 @@ o = : .c.o \Option-f .c {CC} {DepDir}{Default}.c {INTERNAL_CFLAGS} -s gdb_{Default} -o {TargDir}{Default}.c.o -.gc.o \Option-f .c - {gC} {DepDir}{Default}.c {INTERNAL_CFLAGS} -s gdb_{Default} -o {TargDir}{Default}.gc.o - #Copyright 1989, 1990, 1991, 1992, 1993, 1994 Free Software Foundation, Inc. # This file is part of GDB. @@ -117,24 +112,26 @@ LIBIBERTY = ::libiberty:libiberty.o # Where is the MMALLOC library? Typically ::mmalloc. # Note that mmalloc can still be used on systems without mmap(). # To use your system malloc, comment out the following defines. -MMALLOC = ::mmalloc:libmmalloc.o +MMALLOC_DIR = :mmalloc +MMALLOC_SRC = "{s}"{MMALLOC_DIR} +MMALLOC = :{MMALLOC_DIR}:libmmalloc.o # To use your system malloc, uncomment MMALLOC_DISABLE. MMALLOC_DISABLE = -d NO_MMALLOC # To use mmalloc but disable corruption checking, uncomment MMALLOC_CHECK #MMALLOC_CHECK = -d NO_MMALLOC_CHECK -MMALLOC_CFLAGS = {MMALLOC_DISABLE} +MMALLOC_CFLAGS = -i {MMALLOC_SRC} {MMALLOC_CHECK} {MMALLOC_DISABLE} # Where are the BFD library? -BFD_DIR = ::bfd -BFD = {BFD_DIR}:libbfd.o +BFD_DIR = :bfd BFD_SRC = "{s}"{BFD_DIR} -BFD_CFLAGS = -i {BFD_DIR} -i {BFD_SRC} +BFD = :{BFD_DIR}:libbfd.o +BFD_CFLAGS = -i :{BFD_DIR} -i {BFD_SRC} # Where is the READLINE library? Typically in ::readline. -READLINE_DIR = ::readline -READLINE = {READLINE_DIR}:libreadline.o -#READLINE_DISABLE = -d NO_READLINE +READLINE_DIR = :readline READLINE_SRC = "{s}"{READLINE_DIR} +READLINE = :{READLINE_DIR}:libreadline.o +#READLINE_DISABLE = -d NO_READLINE READLINE_CFLAGS = -i {READLINE_SRC} #READLINE_CFLAGS = {READLINE_DISABLE} @@ -209,7 +206,7 @@ CDEPS = {XM_CDEPS} {TM_CDEPS} {NAT_CDEPS} \Option-d 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.12.3 +VERSION = 4.13.1 DIST=gdb LINT=:usr:5bin:lint @@ -345,7 +342,7 @@ ALLDEPFILES = "{s}"29k-share:udi:udip2soc.c "{s}"29k-share:udi:udr.c \Option-d "{s}"nindy-share:Onindy.c "{s}"nindy-share:nindy.c \Option-d "{s}"nindy-share:ttyflush.c "{s}"nindy-tdep.c \Option-d "{s}"ns32k-pinsn.c "{s}"ns32km3-nat.c "{s}"osfsolib.c \Option-d - "{s}"somread.c "{s}"somsolib.c \ + "{s}"somread.c "{s}"somsolib.c \Option-d "{s}"procfs.c "{s}"pyr-pinsn.c "{s}"pyr-tdep.c "{s}"pyr-xdep.c \Option-d "{s}"remote-adapt.c "{s}"remote-bug.c "{s}"remote-e7000.c "{s}"remote-eb.c "{s}"remote-es.c \Option-d "{s}"remote-hms.c "{s}"remote-mips.c \Option-d @@ -549,7 +546,7 @@ SFILES_KGDB = {SFILES} "{s}"stuff.c "{s}"kdb-start.c getopt_h = "{INCLUDE_DIR}":getopt.h #ieee-float_h = "{INCLUDE_DIR}":ieee-float.h ieee_float_h = -bfd_h = "{BFD_DIR}":bfd.h +bfd_h = :"{BFD_DIR}":bfd.h wait_h = "{INCLUDE_DIR}":wait.h dis_asm_h = "{INCLUDE_DIR}":dis-asm.h @@ -645,16 +642,17 @@ TARFILES = {SFILES} {HFILES_NO_SRCDIR} {HFILES_WITH_SRCDIR} \Option-d {ALLPARAM} {INFOFILES} {POSSLIBS} {REMOTE_EXAMPLES} -OBS = "{o}"version.c.o "{o}"main.c.o "{o}"top.c.o "{o}"blockframe.c.o "{o}"breakpoint.gc.o "{o}"findvar.c.o "{o}"stack.c.o "{o}"thread.c.o \Option-d - "{o}"source.c.o "{o}"values.c.o "{o}"eval.c.o "{o}"valops.c.o "{o}"valarith.c.o "{o}"valprint.c.o "{o}"printcmd.gc.o \Option-d - "{o}"symtab.c.o "{o}"symfile.c.o "{o}"symmisc.c.o "{o}"infcmd.c.o "{o}"infrun.gc.o "{o}"command.c.o \Option-d +OBS = "{o}"version.c.o "{o}"main.c.o "{o}"top.c.o "{o}"blockframe.c.o "{o}"breakpoint.c.o "{o}"findvar.c.o "{o}"stack.c.o "{o}"thread.c.o \Option-d + "{o}"source.c.o "{o}"values.c.o "{o}"eval.c.o "{o}"valops.c.o "{o}"valarith.c.o "{o}"valprint.c.o "{o}"printcmd.c.o \Option-d + "{o}"symtab.c.o "{o}"symfile.c.o "{o}"symmisc.c.o "{o}"infcmd.c.o "{o}"infrun.c.o "{o}"command.c.o \Option-d "{o}"utils.c.o "{o}"expprint.c.o "{o}"environ.c.o "{o}"gdbtypes.c.o "{o}"copying.c.o {DEPFILES} \Option-d "{o}"mem-break.c.o "{o}"target.c.o "{o}"parse.c.o "{o}"language.c.o {YYOBJ} "{o}"buildsym.c.o \Option-d "{o}"objfiles.c.o "{o}"minsyms.c.o "{o}"maint.c.o "{o}"demangle.c.o "{o}"dbxread.c.o "{o}"coffread.c.o "{o}"elfread.c.o \Option-d "{o}"dwarfread.c.o "{o}"mipsread.c.o "{o}"stabsread.c.o "{o}"core.c.o "{o}"c-lang.c.o "{o}"ch-lang.c.o "{o}"f-lang.c.o "{o}"m2-lang.c.o \Option-d "{o}"complaints.c.o "{o}"typeprint.c.o "{o}"c-typeprint.c.o "{o}"ch-typeprint.c.o "{o}"f-typeprint.c.o "{o}"m2-typeprint.c.o \Option-d "{o}"c-valprint.c.o "{o}"cp-valprint.c.o "{o}"ch-valprint.c.o "{o}"f-valprint.c.o "{o}"m2-valprint.c.o "{o}"nlmread.c.o \Option-d - "{o}"serial.c.o "{o}"mdebugread.c.o "{o}"annotate.c.o + "{o}"serial.c.o "{o}"mdebugread.c.o "{o}"annotate.c.o \Option-d + "{o}"exec.c.o TSOBS = @@ -719,39 +717,37 @@ uninstall \Option-f force # # Formatting conventions: The name of the _initialize_* routines must start # in column zero, and must not be inside #if. -:init.c \Option-f {OBS} {TSOBS} - Duplicate -d -y "{s}"mpw-init.c :init.c -:init-new.c \Option-f {OBS} {TSOBS} - Echo Making init.c - Delete -i -y init.c-tmp +"{o}"init.c \Option-f {OBS} {TSOBS} + Echo Making "{o}"init.c + Delete -i -y "{o}"init.c init.c-tmp Echo '/* Do not modify this file. */' >init.c-tmp Echo '/* It is created automatically by the Makefile. */'>>init.c-tmp - Echo 'void initialize_all_files () {' >>init.c-tmp + Echo 'void initialize_all_files () ' `mpw-open-brace` >>init.c-tmp For i in {OBS} {TSOBS} - set filename `Echo {i} | sed \Option-d - -e ',^Onindy.o,d' \Option-d - -e ',^nindy.o,d' \Option-d - -e ',ttyflush.o,d' \Option-d - -e ',xdr_ld.o,d' \Option-d - -e ',xdr_ptrace.o,d' \Option-d - -e ',xdr_rdb.o,d' \Option-d - -e ',udr.o,d' \Option-d - -e ',udip2soc.o,d' \Option-d - -e ',udi2go32.o,d' \Option-d - -e ',version.o,d' \Option-d - -e ',[a-z0-9A-Z_]*-exp.tab.o,d' \Option-d - -e 's,\.gc\.o,.c,' \Option-d - -e 's,\.c\.o,.c,'` - If {filename} != "" - sed <{s}{filename} >>init.c-tmp -n \Option-d - -e ',^_initialize_[a-z_0-9A-Z]* *(,s,^\([a-z_0-9A-Z]*\).*, {extern void \1 (); \1 ();},p' + set filename "`Echo {i} | sed \Option-d + -e '/^Onindy.c.o/d' \Option-d + -e '/^nindy.c.o/d' \Option-d + -e '/ttyflush.c.o/d' \Option-d + -e '/xdr_ld.c.o/d' \Option-d + -e '/xdr_ptrace.c.o/d' \Option-d + -e '/xdr_rdb.c.o/d' \Option-d + -e '/udr.c.o/d' \Option-d + -e '/udip2soc.c.o/d' \Option-d + -e '/udi2go32.c.o/d' \Option-d + -e '/version.c.o/d' \Option-d + -e '/[a-z0-9A-Z_]*-exp.tab.c.o/d' \Option-d + -e 's/\.gc\.o/.c/' \Option-d + -e 's/\.c\.o/.c/' \Option-d + -e 's/^{o}//'`" + If "{filename}" != "" + sed <"{s}""{filename}" >>init.c-tmp -n \Option-d + -e '/^_initialize_[a-z_0-9A-Z]* *(/s/^\([a-z_0-9A-Z]*\).*/ {extern void \1 (); \1 ();}/p' End if End For Echo '}' >>init.c-tmp - Rename -y init.c-tmp init-new.c + Rename -y init.c-tmp "{o}"init.c -# .PRECIOUS \Option-f "{s}"init.c LOADLIBES = {EXTRALIBS} @@ -789,7 +785,8 @@ SiowGDB \Option-f {OBS} {TSOBS} {ADD_DEPS} {CDEPS} "{o}"init.c.o "{CLibraries}"StdClib.o \Option-d "{Libraries}"SIOW.o \Option-d "{Libraries}"Runtime.o \Option-d - "{Libraries}"Interface.o + "{Libraries}"Interface.o \Option-d + "{Libraries}"ToolLibs.o # Version of GDB that uses a real library. @@ -1117,7 +1114,7 @@ MAKEOVERRIDES= "{o}"blockframe.c.o \Option-f "{s}"blockframe.c {defs_h} {gdbcore_h} {inferior_h} \Option-d "{s}"objfiles.h "{s}"symfile.h "{s}"target.h -"{o}"breakpoint.gc.o \Option-f "{s}"breakpoint.c {defs_h} {gdbcmd_h} {gdbcore_h} \Option-d +"{o}"breakpoint.c.o \Option-f "{s}"breakpoint.c {defs_h} {gdbcmd_h} {gdbcore_h} \Option-d {inferior_h} "{s}"language.h "{s}"target.h "{s}"thread.h "{o}"buildsym.c.o \Option-f "{s}"buildsym.c {bfd_h} "{s}"buildsym.h "{s}"complaints.h {defs_h} \Option-d @@ -1275,7 +1272,7 @@ MAKEOVERRIDES= "{o}"infptrace.c.o \Option-f "{s}"infptrace.c {defs_h} {gdbcore_h} {inferior_h} "{s}"target.h -"{o}"infrun.gc.o \Option-f "{s}"infrun.c {wait_h} {defs_h} {gdbcmd_h} {gdbcore_h} \Option-d +"{o}"infrun.c.o \Option-f "{s}"infrun.c {wait_h} {defs_h} {gdbcmd_h} {gdbcore_h} \Option-d {inferior_h} "{s}"target.h "{s}"thread.h "{o}"inftarg.c.o \Option-f "{s}"inftarg.c {wait_h} {defs_h} {gdbcore_h} {inferior_h} \Option-d @@ -1370,7 +1367,7 @@ MAKEOVERRIDES= "{o}"parse.c.o \Option-f "{s}"parse.c {command_h} {defs_h} {expression_h} {frame_h} \Option-d {gdbtypes_h} "{s}"language.h "{s}"parser-defs.h {symtab_h} {value_h} -"{o}"printcmd.gc.o \Option-f "{s}"printcmd.c {breakpoint_h} {defs_h} {expression_h} \Option-d +"{o}"printcmd.c.o \Option-f "{s}"printcmd.c {breakpoint_h} {defs_h} {expression_h} \Option-d {gdbcmd_h} {gdbcore_h} {gdbtypes_h} "{s}"language.h "{s}"objfiles.h "{s}"symfile.h \Option-d {symtab_h} "{s}"target.h