* mpw-config.in: Adapt to work with autoconf'ed configury;
build config.h, add empty definitions to mk.tmp. (powerpc-apple-macos): Make it work. * mpw-make.sed: New file, sed commands to translate Unix makefile into MPW syntax. * mpw-make.in: Remove. * mac-gdb.r: New file, was macgdb.r, renamed for consistency with other tools, now includes cfrg resource. * macgdb.r: Remove. * config/m68k/xm-mpw.h: Remove most of contents, replace with include of include/mpw/mpw.h.
This commit is contained in:
parent
0d0c3cc58a
commit
a6922ef003
7 changed files with 314 additions and 1813 deletions
|
@ -1,3 +1,17 @@
|
||||||
|
Thu Oct 19 12:15:37 1995 Stan Shebs <shebs@andros.cygnus.com>
|
||||||
|
|
||||||
|
* mpw-config.in: Adapt to work with autoconf'ed configury;
|
||||||
|
build config.h, add empty definitions to mk.tmp.
|
||||||
|
(powerpc-apple-macos): Make it work.
|
||||||
|
* mpw-make.sed: New file, sed commands to translate Unix makefile
|
||||||
|
into MPW syntax.
|
||||||
|
* mpw-make.in: Remove.
|
||||||
|
* mac-gdb.r: New file, was macgdb.r, renamed for consistency
|
||||||
|
with other tools, now includes cfrg resource.
|
||||||
|
* macgdb.r: Remove.
|
||||||
|
* config/m68k/xm-mpw.h: Remove most of contents, replace with
|
||||||
|
include of include/mpw/mpw.h.
|
||||||
|
|
||||||
Tue Oct 17 10:38:53 1995 Jeffrey A Law (law@cygnus.com)
|
Tue Oct 17 10:38:53 1995 Jeffrey A Law (law@cygnus.com)
|
||||||
|
|
||||||
* hppa-tdep.c (frame_chain): Fix more obscure problems caused
|
* hppa-tdep.c (frame_chain): Fix more obscure problems caused
|
||||||
|
|
|
@ -19,54 +19,14 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
#include "m68k/xm-m68k.h"
|
#include "m68k/xm-m68k.h"
|
||||||
|
|
||||||
|
#include "mpw.h"
|
||||||
|
|
||||||
#include "fopen-bin.h"
|
#include "fopen-bin.h"
|
||||||
|
|
||||||
#include "spin.h"
|
#include "spin.h"
|
||||||
|
|
||||||
#define CANT_FORK
|
#define CANT_FORK
|
||||||
|
|
||||||
#ifdef MPW_C
|
|
||||||
|
|
||||||
/* MPW C is basically ANSI, but doesn't actually enable __STDC__,
|
|
||||||
nor does it allow __STDC__ to be #defined. */
|
|
||||||
|
|
||||||
#ifndef ALMOST_STDC
|
|
||||||
#define ALMOST_STDC
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* MPW_C */
|
|
||||||
|
|
||||||
#ifdef BFD_TRUE_FALSE
|
|
||||||
#ifndef false
|
|
||||||
#define false mpw_false
|
|
||||||
#endif
|
|
||||||
#ifndef true
|
|
||||||
#define true mpw_true
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef MPW_C
|
|
||||||
|
|
||||||
#undef __PTR_TO_INT
|
|
||||||
#define __PTR_TO_INT(P) ((int)(P))
|
|
||||||
#undef __INT_TO_PTR
|
|
||||||
#define __INT_TO_PTR(P) ((char *)(P))
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
FILE *mpw_fopen ();
|
|
||||||
int mpw_fseek ();
|
|
||||||
void mpw_abort ();
|
|
||||||
|
|
||||||
/* Map these standard functions to improved versions in libiberty. */
|
|
||||||
|
|
||||||
#define fopen mpw_fopen
|
|
||||||
#define open mpw_open
|
|
||||||
#define fseek mpw_fseek
|
|
||||||
#define abort mpw_abort
|
|
||||||
|
|
||||||
/* Map these standard functions to versions that can do I/O in a console
|
/* Map these standard functions to versions that can do I/O in a console
|
||||||
window. */
|
window. */
|
||||||
|
|
||||||
|
@ -81,21 +41,6 @@ void mpw_abort ();
|
||||||
|
|
||||||
#define fgetc hacked_fgetc
|
#define fgetc hacked_fgetc
|
||||||
|
|
||||||
/* Define as macros so as to mask the previous enum. */
|
|
||||||
|
|
||||||
#ifndef BFD_TRUE_FALSE
|
|
||||||
#ifndef false
|
|
||||||
#define false ffalse
|
|
||||||
#endif
|
|
||||||
#ifndef true
|
|
||||||
#define true ttrue
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef TRUE_FALSE_ALREADY_DEFINED
|
|
||||||
#define TRUE_FALSE_ALREADY_DEFINED
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define POSIX_UTIME
|
#define POSIX_UTIME
|
||||||
|
|
||||||
/* No declaration of strdup in MPW's string.h, oddly enough. */
|
/* No declaration of strdup in MPW's string.h, oddly enough. */
|
||||||
|
|
148
gdb/mac-gdb.r
Normal file
148
gdb/mac-gdb.r
Normal file
|
@ -0,0 +1,148 @@
|
||||||
|
/* Resource file for MacGDB. */
|
||||||
|
|
||||||
|
#include "SysTypes.r"
|
||||||
|
#include "Types.r"
|
||||||
|
|
||||||
|
#include "mac-defs.h"
|
||||||
|
|
||||||
|
resource 'vers' (1) {
|
||||||
|
0x02, 0x00, release, 0x00,
|
||||||
|
verUS,
|
||||||
|
"4.12.3",
|
||||||
|
"4.12.3, Copyright \251 1994 Free Software Foundation, Inc."
|
||||||
|
};
|
||||||
|
|
||||||
|
resource 'MBAR' (128) {
|
||||||
|
{ mApple, mFile, mEdit, mDebug };
|
||||||
|
};
|
||||||
|
|
||||||
|
resource 'MENU' (mApple, preload) {
|
||||||
|
mApple,
|
||||||
|
textMenuProc,
|
||||||
|
0x7FFFFFFD,
|
||||||
|
enabled,
|
||||||
|
apple,
|
||||||
|
{
|
||||||
|
"About...", noIcon, noKey, noMark, plain,
|
||||||
|
"-", noIcon, noKey, noMark, plain
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
resource 'MENU' (mFile, preload) {
|
||||||
|
mFile,
|
||||||
|
textMenuProc,
|
||||||
|
allEnabled,
|
||||||
|
enabled,
|
||||||
|
"File",
|
||||||
|
{
|
||||||
|
"New", noIcon, noKey, noMark, plain,
|
||||||
|
"Open...", noIcon, "O", noMark, plain,
|
||||||
|
"-", noIcon, noKey, noMark, plain,
|
||||||
|
"Quit", noIcon, "Q", noMark, plain
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
resource 'MENU' (mEdit, preload) {
|
||||||
|
mEdit,
|
||||||
|
textMenuProc,
|
||||||
|
allEnabled,
|
||||||
|
enabled,
|
||||||
|
"Edit",
|
||||||
|
{
|
||||||
|
"Undo", noIcon, "Z", noMark, plain,
|
||||||
|
"-", noIcon, noKey, noMark, plain,
|
||||||
|
"Cut", noIcon, "X", noMark, plain,
|
||||||
|
"Copy", noIcon, "C", noMark, plain,
|
||||||
|
"Paste", noIcon, "V", noMark, plain,
|
||||||
|
"Clear", noIcon, noKey, noMark, plain
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
resource 'MENU' (mDebug, preload) {
|
||||||
|
mDebug,
|
||||||
|
textMenuProc,
|
||||||
|
allEnabled,
|
||||||
|
enabled,
|
||||||
|
"Debug",
|
||||||
|
{
|
||||||
|
"Target", noIcon, "T", noMark, plain,
|
||||||
|
"-", noIcon, noKey, noMark, plain,
|
||||||
|
"Run", noIcon, "R", noMark, plain,
|
||||||
|
"Continue", noIcon, "K", noMark, plain,
|
||||||
|
"Step", noIcon, "S", noMark, plain,
|
||||||
|
"Next", noIcon, "N", noMark, plain
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
resource 'ALRT' (128) {
|
||||||
|
{40, 40, 180, 420},
|
||||||
|
128,
|
||||||
|
{ /* array: 4 elements */
|
||||||
|
/* [1] */
|
||||||
|
OK, visible, sound1,
|
||||||
|
/* [2] */
|
||||||
|
OK, visible, sound1,
|
||||||
|
/* [3] */
|
||||||
|
OK, visible, sound1,
|
||||||
|
/* [4] */
|
||||||
|
OK, visible, sound1
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
resource 'DITL' (128) {
|
||||||
|
{ /* array DITLarray: 2 elements */
|
||||||
|
/* [1] */
|
||||||
|
{110, 150, 128, 200},
|
||||||
|
Button {
|
||||||
|
enabled,
|
||||||
|
"OK"
|
||||||
|
},
|
||||||
|
/* [2] */
|
||||||
|
{10, 10, 100, 370},
|
||||||
|
StaticText {
|
||||||
|
disabled,
|
||||||
|
"GDB 4.12.3\n"
|
||||||
|
"Copyright © 1994 Free Software Foundation, Inc.\n"
|
||||||
|
},
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
resource 'WIND' (wConsole, preload, purgeable) {
|
||||||
|
{40, 40, 310, 572},
|
||||||
|
zoomDocProc,
|
||||||
|
visible,
|
||||||
|
goAway,
|
||||||
|
0x0,
|
||||||
|
"GDB Console"
|
||||||
|
};
|
||||||
|
|
||||||
|
resource 'SIZE' (-1) {
|
||||||
|
reserved,
|
||||||
|
acceptSuspendResumeEvents,
|
||||||
|
reserved,
|
||||||
|
canBackground,
|
||||||
|
multiFinderAware,
|
||||||
|
backgroundAndForeground,
|
||||||
|
dontGetFrontClicks,
|
||||||
|
ignoreChildDiedEvents,
|
||||||
|
not32BitCompatible,
|
||||||
|
isHighLevelEventAware,
|
||||||
|
localAndRemoteHLEvents,
|
||||||
|
notStationeryAware,
|
||||||
|
dontUseTextEditServices,
|
||||||
|
reserved,
|
||||||
|
reserved,
|
||||||
|
reserved,
|
||||||
|
5000*1024,
|
||||||
|
2000*1024
|
||||||
|
};
|
||||||
|
|
||||||
|
resource 'DLOG' (128) {
|
||||||
|
{40, 40, 240, 280},
|
||||||
|
documentProc,
|
||||||
|
visible,
|
||||||
|
goAway,
|
||||||
|
0x0,
|
||||||
|
128,
|
||||||
|
""
|
||||||
|
};
|
148
gdb/macgdb.r
148
gdb/macgdb.r
|
@ -1,148 +0,0 @@
|
||||||
/* Resource file for MacGDB. */
|
|
||||||
|
|
||||||
#include "SysTypes.r"
|
|
||||||
#include "Types.r"
|
|
||||||
|
|
||||||
#include "mac-defs.h"
|
|
||||||
|
|
||||||
resource 'vers' (1) {
|
|
||||||
0x02, 0x00, release, 0x00,
|
|
||||||
verUS,
|
|
||||||
"4.12.3",
|
|
||||||
"4.12.3, Copyright \251 1994 Free Software Foundation, Inc."
|
|
||||||
};
|
|
||||||
|
|
||||||
resource 'MBAR' (128) {
|
|
||||||
{ mApple, mFile, mEdit, mDebug };
|
|
||||||
};
|
|
||||||
|
|
||||||
resource 'MENU' (mApple, preload) {
|
|
||||||
mApple,
|
|
||||||
textMenuProc,
|
|
||||||
0x7FFFFFFD,
|
|
||||||
enabled,
|
|
||||||
apple,
|
|
||||||
{
|
|
||||||
"About...", noIcon, noKey, noMark, plain,
|
|
||||||
"-", noIcon, noKey, noMark, plain
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
resource 'MENU' (mFile, preload) {
|
|
||||||
mFile,
|
|
||||||
textMenuProc,
|
|
||||||
allEnabled,
|
|
||||||
enabled,
|
|
||||||
"File",
|
|
||||||
{
|
|
||||||
"New", noIcon, noKey, noMark, plain,
|
|
||||||
"Open...", noIcon, "O", noMark, plain,
|
|
||||||
"-", noIcon, noKey, noMark, plain,
|
|
||||||
"Quit", noIcon, "Q", noMark, plain
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
resource 'MENU' (mEdit, preload) {
|
|
||||||
mEdit,
|
|
||||||
textMenuProc,
|
|
||||||
allEnabled,
|
|
||||||
enabled,
|
|
||||||
"Edit",
|
|
||||||
{
|
|
||||||
"Undo", noIcon, "Z", noMark, plain,
|
|
||||||
"-", noIcon, noKey, noMark, plain,
|
|
||||||
"Cut", noIcon, "X", noMark, plain,
|
|
||||||
"Copy", noIcon, "C", noMark, plain,
|
|
||||||
"Paste", noIcon, "V", noMark, plain,
|
|
||||||
"Clear", noIcon, noKey, noMark, plain
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
resource 'MENU' (mDebug, preload) {
|
|
||||||
mDebug,
|
|
||||||
textMenuProc,
|
|
||||||
allEnabled,
|
|
||||||
enabled,
|
|
||||||
"Debug",
|
|
||||||
{
|
|
||||||
"Target", noIcon, "T", noMark, plain,
|
|
||||||
"-", noIcon, noKey, noMark, plain,
|
|
||||||
"Run", noIcon, "R", noMark, plain,
|
|
||||||
"Continue", noIcon, "K", noMark, plain,
|
|
||||||
"Step", noIcon, "S", noMark, plain,
|
|
||||||
"Next", noIcon, "N", noMark, plain
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
resource 'ALRT' (128) {
|
|
||||||
{40, 40, 180, 420},
|
|
||||||
128,
|
|
||||||
{ /* array: 4 elements */
|
|
||||||
/* [1] */
|
|
||||||
OK, visible, sound1,
|
|
||||||
/* [2] */
|
|
||||||
OK, visible, sound1,
|
|
||||||
/* [3] */
|
|
||||||
OK, visible, sound1,
|
|
||||||
/* [4] */
|
|
||||||
OK, visible, sound1
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
resource 'DITL' (128) {
|
|
||||||
{ /* array DITLarray: 2 elements */
|
|
||||||
/* [1] */
|
|
||||||
{110, 150, 128, 200},
|
|
||||||
Button {
|
|
||||||
enabled,
|
|
||||||
"OK"
|
|
||||||
},
|
|
||||||
/* [2] */
|
|
||||||
{10, 10, 100, 370},
|
|
||||||
StaticText {
|
|
||||||
disabled,
|
|
||||||
"GDB 4.12.3\n"
|
|
||||||
"Copyright © 1994 Free Software Foundation, Inc.\n"
|
|
||||||
},
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
resource 'WIND' (wConsole, preload, purgeable) {
|
|
||||||
{40, 40, 310, 572},
|
|
||||||
zoomDocProc,
|
|
||||||
visible,
|
|
||||||
goAway,
|
|
||||||
0x0,
|
|
||||||
"GDB Console"
|
|
||||||
};
|
|
||||||
|
|
||||||
resource 'SIZE' (-1) {
|
|
||||||
reserved,
|
|
||||||
acceptSuspendResumeEvents,
|
|
||||||
reserved,
|
|
||||||
canBackground,
|
|
||||||
multiFinderAware,
|
|
||||||
backgroundAndForeground,
|
|
||||||
dontGetFrontClicks,
|
|
||||||
ignoreChildDiedEvents,
|
|
||||||
not32BitCompatible,
|
|
||||||
isHighLevelEventAware,
|
|
||||||
localAndRemoteHLEvents,
|
|
||||||
notStationeryAware,
|
|
||||||
dontUseTextEditServices,
|
|
||||||
reserved,
|
|
||||||
reserved,
|
|
||||||
reserved,
|
|
||||||
5000*1024,
|
|
||||||
2000*1024
|
|
||||||
};
|
|
||||||
|
|
||||||
resource 'DLOG' (128) {
|
|
||||||
{40, 40, 240, 280},
|
|
||||||
documentProc,
|
|
||||||
visible,
|
|
||||||
goAway,
|
|
||||||
0x0,
|
|
||||||
128,
|
|
||||||
""
|
|
||||||
};
|
|
|
@ -18,9 +18,10 @@ If "{target_canonical}" =~ /m68k-apple-macos/
|
||||||
forward-include "{srcdir}"config:m68k:tm-m68k.h 'm68k/tm-m68k.h'
|
forward-include "{srcdir}"config:m68k:tm-m68k.h 'm68k/tm-m68k.h'
|
||||||
Set tdepfiles '"{o}"m68k-tdep.c.o'
|
Set tdepfiles '"{o}"m68k-tdep.c.o'
|
||||||
|
|
||||||
Else If "{target_canonical}" =~ /ppc-apple-macos/
|
Else If "{target_canonical}" =~ /powerpc-apple-macos/
|
||||||
forward-include "{srcdir}"config:powerpc:tm-ppc.h tm.h
|
forward-include "{srcdir}"config:powerpc:tm-macos.h tm.h
|
||||||
Set tdepfiles '"{o}"ppc-tdep.c.o'
|
forward-include "{srcdir}"config:rs6000:tm-rs6000.h 'rs6000/tm-rs6000.h'
|
||||||
|
Set tdepfiles '"{o}"rs6000-tdep.c.o "{o}"xcoffread.c.o'
|
||||||
|
|
||||||
Else If "{target_canonical}" =~ /i386-unknown-go32/
|
Else If "{target_canonical}" =~ /i386-unknown-go32/
|
||||||
forward-include "{srcdir}"config:i386:tm-i386v.h tm.h
|
forward-include "{srcdir}"config:i386:tm-i386v.h tm.h
|
||||||
|
@ -42,10 +43,19 @@ If "{target_canonical}" != "{host_canonical}"
|
||||||
Set natdepfiles " "
|
Set natdepfiles " "
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Echo '# From mpw-config.in' > "{o}"mk.tmp
|
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 "XM_ADD_FILES = " >> "{o}"mk.tmp
|
||||||
|
Echo "TM_ADD_FILES = " >> "{o}"mk.tmp
|
||||||
|
Echo "NAT_ADD_FILES = " >> "{o}"mk.tmp
|
||||||
|
Echo "XM_CDEPS = " >> "{o}"mk.tmp
|
||||||
|
Echo "TM_CDEPS = " >> "{o}"mk.tmp
|
||||||
|
Echo "NAT_CDEPS = " >> "{o}"mk.tmp
|
||||||
|
Echo '# End from mpw-config.in' >> "{o}"mk.tmp
|
||||||
|
|
||||||
Echo "TDEPFILES = " {tdepfiles} >> "{o}"mk.tmp
|
Echo '/* config.h. Generated by mpw-configure. */' > "{o}"config.new
|
||||||
Echo "XDEPFILES = " {xdepfiles} >> "{o}"mk.tmp
|
Echo '#include "mpw.h"' >> "{o}"config.new
|
||||||
Echo "NATDEPFILES = " {nat_file} >> "{o}"mk.tmp
|
|
||||||
|
|
||||||
Echo '# End from mpw-config.in' >> "{o}"mk.tmp
|
MoveIfChange "{o}"config.new "{o}"config.h
|
||||||
|
|
1600
gdb/mpw-make.in
1600
gdb/mpw-make.in
File diff suppressed because it is too large
Load diff
132
gdb/mpw-make.sed
Normal file
132
gdb/mpw-make.sed
Normal file
|
@ -0,0 +1,132 @@
|
||||||
|
# Sed commands that finish translating the GDB Unix Makefile to MPW syntax.
|
||||||
|
|
||||||
|
/^host_alias =/d
|
||||||
|
/^target_alias =/d
|
||||||
|
|
||||||
|
/^host_makefile_frag@$/d
|
||||||
|
/^target_makefile_frag@$/d
|
||||||
|
|
||||||
|
# Edit all the symbolic definitions pointing to various libraries and such.
|
||||||
|
|
||||||
|
/^INCLUDE_DIR = /s/"{srcdir}":include/"{topsrcdir}"include:/
|
||||||
|
|
||||||
|
/^MMALLOC_DIR = /s/::mmalloc/mmalloc:/
|
||||||
|
/^MMALLOC_SRC = /s/"{srcdir}"/"{topsrcdir}"/
|
||||||
|
/^MMALLOC =/s/=.*$/=/
|
||||||
|
/#MMALLOC_DISABLE/s/^#//
|
||||||
|
|
||||||
|
/^BFD_DIR = /s/::bfd/bfd:/
|
||||||
|
/^BFD = /s/{BFD_DIR}:libbfd/{BFD_DIR}libbfd/
|
||||||
|
/^BFD_SRC = /s/"{srcdir}"/"{topsrcdir}"/
|
||||||
|
|
||||||
|
/^READLINE_DIR = /s/::readline/readline:/
|
||||||
|
/^READLINE =/s/=.*$/=/
|
||||||
|
/^READLINE_SRC = /s/"{srcdir}"/"{topsrcdir}"/
|
||||||
|
|
||||||
|
/^INCLUDE_CFLAGS = /s/$/ -i "{topsrcdir}"include:mpw: -i ::extra-include:/
|
||||||
|
|
||||||
|
/^SER_HARDWIRE =/s/ser-unix/ser-mac/
|
||||||
|
|
||||||
|
/^TERMCAP =/s/ =.*$/ =/
|
||||||
|
|
||||||
|
/@DEFS@/s/@DEFS@//g
|
||||||
|
|
||||||
|
/@YACC@/s/@YACC@/byacc/g
|
||||||
|
|
||||||
|
/@ENABLE_OBS@/s/@ENABLE_OBS@//g
|
||||||
|
|
||||||
|
/@ENABLE_CLIBS@/s/@ENABLE_CLIBS@//g
|
||||||
|
|
||||||
|
/INCLUDE_DIR/s/"{s}"{INCLUDE_DIR}/{INCLUDE_DIR}/g
|
||||||
|
/INCLUDE_DIR/s/{INCLUDE_DIR}:/{INCLUDE_DIR}/g
|
||||||
|
/INCLUDE_DIR/s/"{INCLUDE_DIR}":/"{INCLUDE_DIR}"/g
|
||||||
|
|
||||||
|
/{BFD_DIR}/s/"{BFD_DIR}":/"{BFD_DIR}"/g
|
||||||
|
/{BFD_DIR}/s/\([ ]\){BFD_DIR}/\1::{BFD_DIR}/g
|
||||||
|
/{BFD_DIR}/s/\([ ]\)"{BFD_DIR}"/\1::"{BFD_DIR}"/g
|
||||||
|
|
||||||
|
/{BFD_SRC}/s/"{s}"{BFD_SRC}/{BFD_SRC}/g
|
||||||
|
/{BFD_SRC}/s/{BFD_SRC}:/{BFD_SRC}/g
|
||||||
|
|
||||||
|
/{READLINE_SRC}/s/"{s}"{READLINE_SRC}/{READLINE_SRC}/g
|
||||||
|
|
||||||
|
/^readline_headers =/,/^$/c\
|
||||||
|
readline_headers =\
|
||||||
|
|
||||||
|
|
||||||
|
/{MMALLOC_CHECK}/s/{MMALLOC_CHECK}//g
|
||||||
|
|
||||||
|
# This isn't really useful, and seems to cause nonsensical complaints.
|
||||||
|
/{ALLDEPFILES}/s/{ALLDEPFILES}//g
|
||||||
|
|
||||||
|
/^copying.c \\Option-f /,/^$/d
|
||||||
|
|
||||||
|
# Fix the syntax of bits of C code that go into version.c.
|
||||||
|
/char /s/'char .Option-x/'char */
|
||||||
|
|
||||||
|
/version/s/"{s}"version\.c/"{o}"version.c/g
|
||||||
|
/version/s/^version\.c/"{o}"version.c/
|
||||||
|
/xm/s/"{s}"xm\.h/"{o}"xm.h/g
|
||||||
|
/xm/s/^xm\.h/"{o}"xm.h/
|
||||||
|
/tm/s/"{s}"tm\.h/"{o}"tm.h/g
|
||||||
|
/tm/s/^tm\.h/"{o}"tm.h/
|
||||||
|
/nm/s/"{s}"nm\.h/"{o}"nm.h/g
|
||||||
|
/nm/s/^nm\.h/"{o}"nm.h/
|
||||||
|
|
||||||
|
/exp.tab.c/s/"{s}"\([a-z0-9]*\)-exp\.tab\.c/"{o}"\1-exp.tab.c/g
|
||||||
|
/exp.tab.c/s/^\([a-z0-9]*\)-exp\.tab\.c/"{o}"\1-exp.tab.c/
|
||||||
|
|
||||||
|
/y.tab/s/"{s}"y.tab\.c/"{o}"y.tab.c/g
|
||||||
|
/y.tab/s/^y.tab\.c/"{o}"y.tab.c/
|
||||||
|
|
||||||
|
/init/s/"{s}"init\.c-tmp/"{o}"init.c-tmp/g
|
||||||
|
/init/s/^init\.c-tmp/"{o}"init.c-tmp/
|
||||||
|
/init/s/"{s}"init\.c/"{o}"init.c/g
|
||||||
|
/init/s/^init\.c/"{o}"init.c/
|
||||||
|
|
||||||
|
/"{o}"version.c \\Option-f Makefile/,/^$/c\
|
||||||
|
"{o}"version.c \\Option-f Makefile\
|
||||||
|
echo -n 'char *version = "' >"{o}"version.c\
|
||||||
|
echo -n "{VERSION}" >>"{o}"version.c\
|
||||||
|
echo '";' >>"{o}"version.c\
|
||||||
|
echo -n 'char *host_name = "' >>"{o}"version.c\
|
||||||
|
echo -n "{host_alias}" >>"{o}"version.c\
|
||||||
|
echo '";' >>"{o}"version.c\
|
||||||
|
echo -n 'char *target_name = "' >>"{o}"version.c\
|
||||||
|
echo -n "{target_alias}" >>"{o}"version.c\
|
||||||
|
echo '";' >>"{o}"version.c\
|
||||||
|
|
||||||
|
|
||||||
|
# Open-brace in a command causes much confusion; replace with the
|
||||||
|
# result from a script.
|
||||||
|
/initialize_all_files ()/c\
|
||||||
|
Echo -n 'void initialize_all_files () ' >> "{o}"init.c-tmp\
|
||||||
|
open-brace >> "{o}"init.c-tmp
|
||||||
|
|
||||||
|
# Replace the whole sed bit for init.c; it's simpler that way...
|
||||||
|
/filename=`echo $i | sed/,/esac/c\
|
||||||
|
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/\\.c\\.o/.c/' \\Option-d\
|
||||||
|
-e 's/^://'`"\
|
||||||
|
If "{filename}" != ""\
|
||||||
|
sed <"{s}""{filename}" >>"{o}"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
|
||||||
|
|
||||||
|
# Fix the main compile/link command.
|
||||||
|
/{CC_LD} {INTERNAL_LDFLAGS} -o gdb/,/"{o}"init.c.o {OBS} {TSOBS} {ADD_FILES} {CLIBS} {LOADLIBES}/c\
|
||||||
|
{CC_LD} {INTERNAL_LDFLAGS} -o gdb{PROG_EXT} "{o}"init.c.o {OBS} {TSOBS} {ADD_FILES} {CLIBS} {LOADLIBES} {EXTRALIBS}\
|
||||||
|
{MAKEPEF} gdb{PROG_EXT} -o gdb {MAKEPEF_TOOL_FLAGS} {MAKEPEF_FLAGS}\
|
||||||
|
{REZ} "{s}"mac-gdb.r -o gdb -append -d PROG_NAME='"'gdb'"' -d VERSION_STRING='"'{version}'"'\
|
||||||
|
|
Loading…
Reference in a new issue