aboutsummaryrefslogtreecommitdiff
path: root/gdb/.Sanitize
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/.Sanitize')
-rw-r--r--gdb/.Sanitize27
1 files changed, 27 insertions, 0 deletions
diff --git a/gdb/.Sanitize b/gdb/.Sanitize
index fe5edc0..52000d3 100644
--- a/gdb/.Sanitize
+++ b/gdb/.Sanitize
@@ -627,6 +627,33 @@ else
done
fi
+if ( echo $* | grep keep\-vr5400 > /dev/null ) ; then
+ for i in * ; do
+ if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Keeping vr5400 stuff in $i
+ fi
+ fi
+ done
+else
+ for i in * ; do
+ if test ! -d $i && (grep sanitize-vr5400 $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Removing traces of \"vr5400\" from $i...
+ fi
+ cp $i new
+ sed '/start\-sanitize\-vr5400/,/end-\sanitize\-vr5400/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\-tic80 > /dev/null ) ; then
for i in * ; do
if test ! -d $i && (grep sanitize-tic80 $i > /dev/null) ; then