Do-first:
-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}"
- if [ -n "${verbose}" ] ; then
- echo Keeping ${mpw_files}
- fi
-else
- lose_these_too="${mpw_files} ${lose_these_too}"
- if [ -n "${verbose}" ] ; then
- echo Deleting ${mpw_files}
- fi
-fi
-
# mswin gdb is not really gdbtk, but is close enough for now.
gdbtk_files="gdbtk.c gdbtk.tcl mswin"
m68k-tdep.c
m88k-nat.c
m88k-tdep.c
+mac-defs.h
+mac-xdep.c
+macgdb.r
main.c
maint.c
mdebugread.c
mipsread.c
monitor.h
monitor.c
+mpw-config.in
+mpw-make.in
news-xdep.c
nindy-share
nindy-tdep.c
saber.suppress
ser-e7kpc.c
ser-go32.c
+ser-mac.c
ser-tcp.c
ser-unix.c
serial.c
Do-last:
-echo Removing traces of \"mpw\"...
-
-# Don't try to clean directories here, as the 'mv' command will fail.
-# Also, grep fails on NFS mounted directories.
-if ( echo $* | grep keep\-mpw > /dev/null ) ; then
- for i in * ; do
- if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then
- echo Keeping mpw stuff in $i
- fi
- done
-else
- for i in * ; do
- if test ! -d $i && (grep sanitize-mpw $i > /dev/null) ; then
- echo Removing traces of \"mpw\" out of $i...
- cp $i new
- sed '/start\-sanitize\-mpw/,/end-\sanitize\-mpw/d' < $i > new
- if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
- echo Caching $i in .Recover...
- mv $i .Recover
- fi
- mv new $i
- fi
- done
-fi
-
echo Catering to RMS by removing traces of \"gdbtk\"...
# Don't try to clean directories here, as the 'mv' command will fail.
Do-first:
-mpw_files="xm-mpw.h tm-mac.h"
-
-if ( echo $* | grep keep\-mpw > /dev/null ) ; then
- keep_these_too="${mpw_files}"
- if [ -n "${verbose}" ] ; then
- echo Keeping ${mpw_files}
- fi
-else
- lose_these_too="${mpw_files}"
- if [ -n "${verbose}" ] ; then
- echo Deleting ${mpw_files}
- fi
-fi
-
# All files listed between the "Things-to-keep:" line and the
# "Files-to-sed:" line will be kept. All other files will be removed.
# Directories listed in this section will have their own Sanitize
tm-hp300hpux.h
tm-isi.h
tm-m68kv4.h
+tm-mac.h
tm-monitor.h
tm-news.h
tm-os68k.h
xm-m68k.h
xm-m68klynx.h
xm-m68kv4.h
+xm-mpw.h
xm-news.h
xm-news1000.h
xm-sun2.h
character position to be off, since the newline we read from
the user is not accounted for. */
fputs_unfiltered (prrompt, gdb_stdout);
-/* start-sanitize-mpw */
#ifdef MPW
/* Move to a new line so the entered line doesn't have a prompt
on the front of it. */
fputs_unfiltered ("\n", gdb_stdout);
#endif /* MPW */
-/* end-sanitize-mpw */
gdb_flush (gdb_stdout);
}
/* String to be printed before error messages, if any. */
char *error_pre_print;
+
+/* String to be printed before quit messages, if any. */
+
+char *quit_pre_print;
+
+/* String to be printed before warning messages, if any. */
+
char *warning_pre_print = "\nwarning: ";
\f
/* Add a new cleanup to the cleanup_chain,
annotate_error_begin ();
/* Don't use *_filtered; we don't want to prompt the user to continue. */
- if (error_pre_print)
- fprintf_unfiltered (gdb_stderr, error_pre_print);
+ if (quit_pre_print)
+ fprintf_unfiltered (gdb_stderr, quit_pre_print);
if (job_control
/* If there is no terminal switching for this target, then we can't
/* Automatically answer "yes" if input is not from a terminal. */
if (!input_from_terminal_p ())
return 1;
-/* start-sanitize-mpw */
#ifdef MPW
- /* Automatically answer "yes" if called from MacGDB. */
+ /* FIXME Automatically answer "yes" if called from MacGDB. */
if (mac_app)
return 1;
#endif /* MPW */
-/* end-sanitize-mpw */
while (1)
{
if (annotation_level > 1)
printf_filtered ("\n\032\032query\n");
-/* start-sanitize-mpw */
#ifdef MPW
/* If not in MacGDB, move to a new line so the entered line doesn't
have a prompt on the front of it. */
if (!mac_app)
fputs_unfiltered ("\n", gdb_stdout);
#endif /* MPW */
-/* end-sanitize-mpw */
+
gdb_flush (gdb_stdout);
answer = fgetc (stdin);
clearerr (stdin); /* in case of C-d */
#else
lines_per_page = 24;
chars_per_line = 80;
-/* start-sanitize-mpw */
+
#ifndef MPW
/* No termcap under MPW, although might be cool to do something
by looking at worksheet or console window sizes. */
-/* end-sanitize-mpw */
/* Initialize the screen height and width from termcap. */
{
char *termtype = getenv ("TERM");
}
}
}
-/* start-sanitize-mpw */
#endif /* MPW */
-/* end-sanitize-mpw */
#if defined(SIGWINCH) && defined(SIGWINCH_HANDLER)