Fri Sep 18 14:07:44 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
[deliverable/binutils-gdb.git] / gdb / .Sanitize
index 0f1751f855bf8819a066fab7989ff0a0152a08b0..3f5963ad39828eb7ef7ec710e5212555bf10f316 100644 (file)
@@ -15,7 +15,7 @@
 
 Do-first:
 
-gdbtk_files="ChangeLog-gdbtk README.GDBTK gdbtk.c gdbtcl2 gdb.rc gdbtool.ico"
+gdbtk_files="ChangeLog-gdbtk README.GDBTK gdbtk.c gdbtk.h gdbtk-cmds.c gdbtk-hooks.c gdbtcl2 gdb.rc gdbtool.ico"
 
 if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then
        lose_these_too="${gdbtk_files} ${lose_these_too}"
@@ -60,31 +60,45 @@ else
        fi
 fi
 
-d30v_files="d30v-tdep.c"
+sky_files="txvu-tdep.c"
 
-if ( echo $* | grep keep\-d30v > /dev/null ) ; then
-       keep_these_too="${d30v_files} ${keep_these_too}"
+if ( echo $* | grep keep\-sky > /dev/null ) ; then
+       keep_these_too="${sky_files} ${keep_these_too}"
        if [ -n "${verbose}" ] ; then
-               echo Keeping ${d30v_files}
+               echo Keeping ${sky_files}
        fi
 else
-       lose_these_too="${d30v_files} ${lose_these_too}"
+       lose_these_too="${sky_files} ${lose_these_too}"
        if [ -n "${verbose}" ] ; then
-               echo Deleting ${d30v_files}
+               echo Deleting ${sky_files}
        fi
 fi
 
-sky_files="txvu-tdep.c"
+java_files="jv-exp.y jv-lang.c jv-lang.h jv-typeprint.c jv-valprint.c"
 
-if ( echo $* | grep keep\-sky > /dev/null ) ; then
-       keep_these_too="${sky_files} ${keep_these_too}"
+if ( echo $* | grep keep\-java > /dev/null ) ; then
+       keep_these_too="${java_files} ${keep_these_too}"
        if [ -n "${verbose}" ] ; then
-               echo Keeping ${sky_files}
+               echo Keeping ${java_files}
        fi
 else
-       lose_these_too="${sky_files} ${lose_these_too}"
+       lose_these_too="${java_files} ${lose_these_too}"
        if [ -n "${verbose}" ] ; then
-               echo Deleting ${sky_files}
+               echo Deleting ${java_files}
+       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
 
@@ -125,6 +139,10 @@ arc-tdep.c
 arm-convert.s
 arm-tdep.c
 arm-xdep.c
+ax-gdb.c
+ax-gdb.h
+ax-general.c
+ax.h
 bcache.c
 bcache.h
 blockframe.c
@@ -169,6 +187,7 @@ cp-valprint.c
 cpu32bug-rom.c
 cxux-nat.c
 d10v-tdep.c
+d30v-tdep.c
 dbug-rom.c
 dbxread.c
 dcache.c
@@ -253,11 +272,6 @@ inftarg.c
 irix4-nat.c
 irix5-nat.c
 isi-xdep.c
-jv-exp.y
-jv-lang.c
-jv-lang.h
-jv-typeprint.c
-jv-valprint.c
 kdb-start.c
 language.c
 language.h
@@ -595,22 +609,22 @@ else
        done
 fi
 
-if ( echo $* | grep keep\-tx39 > /dev/null ) ; then
+if ( echo $* | grep keep\-tx49 > /dev/null ) ; then
        for i in * ; do
-               if test ! -d $i && (grep sanitize-tx39 $i > /dev/null) ; then
+               if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
                        if [ -n "${verbose}" ] ; then
-                               echo Keeping tx39 stuff in $i
+                               echo Keeping tx49 stuff in $i
                        fi
                fi
        done
 else
        for i in * ; do
-               if test ! -d $i && (grep sanitize-tx39 $i > /dev/null) ; then
+               if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
                        if [ -n "${verbose}" ] ; then
-                               echo Removing traces of \"tx39\" from $i...
+                               echo Removing traces of \"tx49\" from $i...
                        fi
                        cp $i new
-                       sed '/start\-sanitize\-tx39/,/end-\sanitize\-tx39/d' < $i > new
+                       sed '/start\-sanitize\-tx49/,/end-\sanitize\-tx49/d' < $i > new
                        if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
                                if [ -n "${verbose}" ] ; then
                                        echo Caching $i in .Recover...
@@ -622,22 +636,22 @@ else
        done
 fi
 
-if ( echo $* | grep keep\-tx49 > /dev/null ) ; then
+if ( echo $* | grep keep\-sky > /dev/null ) ; then
        for i in * ; do
-               if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
+               if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
                        if [ -n "${verbose}" ] ; then
-                               echo Keeping tx49 stuff in $i
+                               echo Keeping sky stuff in $i
                        fi
                fi
        done
 else
        for i in * ; do
-               if test ! -d $i && (grep sanitize-tx49 $i > /dev/null) ; then
+               if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
                        if [ -n "${verbose}" ] ; then
-                               echo Removing traces of \"tx49\" from $i...
+                               echo Removing traces of \"sky\" from $i...
                        fi
                        cp $i new
-                       sed '/start\-sanitize\-tx49/,/end-\sanitize\-tx49/d' < $i > new
+                       sed '/start\-sanitize\-sky/,/end-\sanitize\-sky/d' < $i > new
                        if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
                                if [ -n "${verbose}" ] ; then
                                        echo Caching $i in .Recover...
@@ -649,22 +663,22 @@ else
        done
 fi
 
-if ( echo $* | grep keep\-sky > /dev/null ) ; then
+if ( echo $* | grep keep\-cygnus > /dev/null ) ; then
        for i in * ; do
-               if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
+               if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
                        if [ -n "${verbose}" ] ; then
-                               echo Keeping sky stuff in $i
+                               echo Keeping cygnus stuff in $i
                        fi
                fi
        done
 else
        for i in * ; do
-               if test ! -d $i && (grep sanitize-sky $i > /dev/null) ; then
+               if test ! -d $i && (grep sanitize-cygnus $i > /dev/null) ; then
                        if [ -n "${verbose}" ] ; then
-                               echo Removing traces of \"sky\" from $i...
+                               echo Removing traces of \"cygnus\" from $i...
                        fi
                        cp $i new
-                       sed '/start\-sanitize\-sky/,/end-\sanitize\-sky/d' < $i > new
+                       sed '/start\-sanitize\-cygnus/,/end-\sanitize\-cygnus/d' < $i > new
                        if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
                                if [ -n "${verbose}" ] ; then
                                        echo Caching $i in .Recover...
@@ -676,22 +690,22 @@ else
        done
 fi
 
-if ( echo $* | grep keep\-vr5400 > /dev/null ) ; then
+if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
        for i in * ; do
-               if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
+               if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
                        if [ -n "${verbose}" ] ; then
-                               echo Keeping vr5400 stuff in $i
+                               echo Keeping tic80 stuff in $i
                        fi
                fi
        done
 else
        for i in * ; do
-               if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
+               if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
                        if [ -n "${verbose}" ] ; then
-                               echo Removing traces of \"vr5400\" from $i...
+                               echo Removing traces of \"tic80\" from $i...
                        fi
                        cp $i new
-                       sed '/start\-sanitize\-vr5400/,/end-\sanitize\-vr5400/d' < $i > new
+                       sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
                        if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
                                if [ -n "${verbose}" ] ; then
                                        echo Caching $i in .Recover...
@@ -703,22 +717,22 @@ else
        done
 fi
 
-if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
+if ( echo $* | grep keep\-am33 > /dev/null ) ; then
        for i in * ; do
-               if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
+               if test ! -d $i && (grep sanitize-am33 $i > /dev/null) ; then
                        if [ -n "${verbose}" ] ; then
-                               echo Keeping tic80 stuff in $i
+                               echo Keeping am33 stuff in $i
                        fi
                fi
        done
 else
        for i in * ; do
-               if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then
+               if test ! -d $i && (grep sanitize-am33 $i > /dev/null) ; then
                        if [ -n "${verbose}" ] ; then
-                               echo Removing traces of \"tic80\" from $i...
+                               echo Removing traces of \"am33\" from $i...
                        fi
                        cp $i new
-                       sed '/start\-sanitize\-tic80/,/end-\sanitize\-tic80/d' < $i > new
+                       sed '/start\-sanitize\-am33/,/end-\sanitize\-am33/d' < $i > new
                        if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
                                if [ -n "${verbose}" ] ; then
                                        echo Caching $i in .Recover...
@@ -730,22 +744,22 @@ else
        done
 fi
 
-if ( echo $* | grep keep\-d30v > /dev/null ) ; then
+if ( echo $* | grep keep\-vr4111 > /dev/null ) ; then
        for i in * ; do
-               if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
+               if test ! -d $i && (grep sanitize-vr4111 $i > /dev/null) ; then
                        if [ -n "${verbose}" ] ; then
-                               echo Keeping d30v stuff in $i
+                               echo Keeping vr4111 stuff in $i
                        fi
                fi
        done
 else
        for i in * ; do
-               if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
+               if test ! -d $i && (grep sanitize-vr4111 $i > /dev/null) ; then
                        if [ -n "${verbose}" ] ; then
-                               echo Removing traces of \"d30v\" from $i...
+                               echo Removing traces of \"vr4111\" from $i...
                        fi
                        cp $i new
-                       sed '/start\-sanitize\-d30v/,/end-\sanitize\-d30v/d' < $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...
@@ -784,6 +798,42 @@ else
        done
 fi
 
+# This is a temporary measure to sanitize out references to the
+# startup code need by the TclPro debugger.  When that goes out
+# of alpha, we can remove this.
+
+if ( echo $* | grep keep\-tclpro > /dev/null ) ; then
+       for i in * ; do
+               if test ! -d $i && (grep sanitize-tclpro $i > /dev/null) ; then
+                       echo Keeping \"tclpro\" stuff in $i, but editing out sanitize lines...
+                       cp $i new
+                       sed -e '/start\-sanitize\-tclpro/d' -e '/end\-sanitize\-tclpro/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
+else
+       for i in * ; do
+               if test ! -d $i && (grep sanitize-tclpro $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"tclpro\" from $i...
+                       fi
+                       cp $i new
+                       sed '/start\-sanitize\-tclpro/,/end-\sanitize\-tclpro/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\-mswin > /dev/null ) ; then
        for i in * ; do
                if test ! -d $i && (grep sanitize-mswin $i > /dev/null) ; then
@@ -811,6 +861,33 @@ else
        done
 fi
 
+if ( echo $* | grep keep\-java > /dev/null ) ; then
+       for i in * ; do
+               if test ! -d $i && (grep sanitize-java $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Keeping java stuff in $i
+                       fi
+               fi
+       done
+else
+       for i in * ; do
+               if test ! -d $i && (grep sanitize-java $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"java\" from $i...
+                       fi
+                       cp $i new
+                       sed '/start\-sanitize\-java/,/end-\sanitize\-java/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
+
 for i in * ; do
        if test ! -d $i && (grep sanitize $i > /dev/null) ; then
                echo '***' Some mentions of Sanitize are still left in $i! 1>&2
This page took 0.029485 seconds and 4 git commands to generate.