add vr4111 as a sanitization tag to get rid of vr4111 and vr4102 mentions.
authorJason Molenda <jmolenda@apple.com>
Wed, 27 May 1998 19:34:49 +0000 (19:34 +0000)
committerJason Molenda <jmolenda@apple.com>
Wed, 27 May 1998 19:34:49 +0000 (19:34 +0000)
gdb/.Sanitize
gdb/ChangeLog

index e53bc76..f4b5770 100644 (file)
@@ -102,6 +102,20 @@ else
        fi
 fi
 
+vr4111_files="nec4102rom.c"
+
+if ( echo $* | grep keep\-vr4111 > /dev/null ) ; then
+       keep_these_too="${vr4111_files} ${keep_these_too}"
+       if [ -n "${verbose}" ] ; then
+               echo Keeping ${vr4111_files}
+       fi
+else
+       lose_these_too="${vr4111_files} ${lose_these_too}"
+       if [ -n "${verbose}" ] ; then
+               echo Deleting ${vr4111_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
@@ -309,7 +323,6 @@ mpw-config.in
 mpw-make.sed
 msg.defs
 msg_reply.defs
-nec4102rom.c
 news-xdep.c
 nindy-share
 nindy-tdep.c
@@ -767,6 +780,33 @@ else
        done
 fi
 
+if ( echo $* | grep keep\-vr4111 > /dev/null ) ; then
+       for i in * ; do
+               if test ! -d $i && (grep sanitize-vr4111 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Keeping vr4111 stuff in $i
+                       fi
+               fi
+       done
+else
+       for i in * ; do
+               if test ! -d $i && (grep sanitize-vr4111 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"vr4111\" from $i...
+                       fi
+                       cp $i new
+                       sed '/start\-sanitize\-vr4111/,/end-\sanitize\-vr4111/d' < $i > new
+                       if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
+                               if [ -n "${verbose}" ] ; then
+                                       echo Caching $i in .Recover...
+                               fi
+                               mv $i .Recover
+                       fi
+                       mv new $i
+               fi
+       done
+fi
+
 if ( echo $* | grep keep\-ide > /dev/null ) ; then
        for i in * ; do
                if test ! -d $i && (grep sanitize-ide $i > /dev/null) ; then
index f05eb37..6dd0d81 100644 (file)
@@ -247,6 +247,7 @@ Thu Apr 30 15:59:54 1998  Jason Molenda  (crash@bugshack.cygnus.com)
         (local-maintainer-clean, do-maintainer-clean): New rules.
 
 Wed Apr 29 10:20:40 1998  John Metzler  <jmetzler@cygnus.com>
+start-sanitize-vr4111
 
        * nec4102rom.c: New file implements ROM monitor adapter for
         nec-vr4102 board.  This board hosts the vr4111 chip.  This file
@@ -254,6 +255,7 @@ Wed Apr 29 10:20:40 1998  John Metzler  <jmetzler@cygnus.com>
         filter, new flags. This version does not support more than one
         breakpoint and resuming after a breakpoint in 16 bit mode is
         completely disfunctional.  
+end-sanitize-vr4111
 
        * monitor.h: Defined additional hooks for dmpregs, configure_hooks
        and wait_filter. These additions require that all ROM monitor