aboutsummaryrefslogtreecommitdiff
path: root/gdb/.Sanitize
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>1993-07-12 00:08:42 +0000
committerDavid Edelsohn <dje.gcc@gmail.com>1993-07-12 00:08:42 +0000
commit85b9835f8f44be9114ec40b3fdd6a0cecc2d930e (patch)
tree048a883275b4a0a9ef77a96e35349629afeff2c3 /gdb/.Sanitize
parent62648c5ad8d07b13776ead210b672d9d9ba19904 (diff)
downloadgdb-85b9835f8f44be9114ec40b3fdd6a0cecc2d930e.zip
gdb-85b9835f8f44be9114ec40b3fdd6a0cecc2d930e.tar.gz
gdb-85b9835f8f44be9114ec40b3fdd6a0cecc2d930e.tar.bz2
Add v9 sanitization support.
Diffstat (limited to 'gdb/.Sanitize')
-rw-r--r--gdb/.Sanitize25
1 files changed, 25 insertions, 0 deletions
diff --git a/gdb/.Sanitize b/gdb/.Sanitize
index f3cb3cc..b06b7bf 100644
--- a/gdb/.Sanitize
+++ b/gdb/.Sanitize
@@ -287,4 +287,29 @@ tests
Do-last:
+echo Looking for signs of \"v9\"...
+
+# Don't try to clean directories here, as the 'mv' command will fail.
+# Also, grep fails on NFS mounted directories.
+if ( echo $* | grep keep\-v9 > /dev/null ) ; then
+ for i in * ; do
+ if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
+ echo Keeping v9 stuff in $i
+ fi
+ done
+else
+ for i in * ; do
+ if test ! -d $i && (grep sanitize-v9 $i > /dev/null) ; then
+ echo Cleaning the \"v9\" out of $i...
+ cp $i new
+ sed '/start\-sanitize\-v9/,/end-\sanitize\-v9/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
+
# End of file.