aboutsummaryrefslogtreecommitdiff
path: root/gdb/.Sanitize
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/.Sanitize')
-rw-r--r--gdb/.Sanitize43
1 files changed, 43 insertions, 0 deletions
diff --git a/gdb/.Sanitize b/gdb/.Sanitize
index bb06b39..e107271 100644
--- a/gdb/.Sanitize
+++ b/gdb/.Sanitize
@@ -29,6 +29,20 @@ else
fi
fi
+d10v_files="d10v-tdep.c"
+
+if ( echo $* | grep keep\-d10v > /dev/null ) ; then
+ keep_these_too="${d10v_files} ${keep_these_too}"
+ if [ -n "${verbose}" ] ; then
+ echo Keeping ${d10v_files}
+ fi
+else
+ lose_these_too="${d10v_files} ${lose_these_too}"
+ if [ -n "${verbose}" ] ; then
+ echo Deleting ${d10v_files}
+ fi
+fi
+
gdbtk_files="README.GDBTK gdbtk.c gdbtk.tcl"
if ( echo $* | grep lose\-gdbtk > /dev/null ) ; then
@@ -469,6 +483,35 @@ else
done
fi
+d10v_files="configure.in configure ChangeLog"
+
+if ( echo $* | grep keep\-d10v > /dev/null ) ; then
+ for i in $d10v_files ; do
+ if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Keeping d10v stuff in $i
+ fi
+ fi
+ done
+else
+ for i in $d10v_files ; do
+ if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Removing traces of \"d10v\" from $i...
+ fi
+ cp $i new
+ sed '/start\-sanitize\-d10v/,/end-\sanitize\-d10v/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\-gm > /dev/null ) ; then
for i in * ; do
if test ! -d $i && (grep sanitize-gm $i > /dev/null) ; then