aboutsummaryrefslogtreecommitdiff
path: root/opcodes/.Sanitize
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>1998-02-03 01:08:35 +0000
committerNick Clifton <nickc@redhat.com>1998-02-03 01:08:35 +0000
commitc62448bfe0901dd004d774faf576d414b1ecf3d5 (patch)
tree97338867d797ee253cc3ca30182d3db8cdb03219 /opcodes/.Sanitize
parent292feafc968ed0129bd7720b233da765f1796244 (diff)
downloadgdb-c62448bfe0901dd004d774faf576d414b1ecf3d5.zip
gdb-c62448bfe0901dd004d774faf576d414b1ecf3d5.tar.gz
gdb-c62448bfe0901dd004d774faf576d414b1ecf3d5.tar.bz2
Added m32rx sanitization.
Diffstat (limited to 'opcodes/.Sanitize')
-rw-r--r--opcodes/.Sanitize28
1 files changed, 28 insertions, 0 deletions
diff --git a/opcodes/.Sanitize b/opcodes/.Sanitize
index 9217840..f705c43 100644
--- a/opcodes/.Sanitize
+++ b/opcodes/.Sanitize
@@ -438,6 +438,34 @@ else
done
fi
+m32rx_files="ChangeLog m32r-opc.c m32r-opc.h m32r-dis.c m32r-asm.c"
+if ( echo $* | grep keep\-m32rx > /dev/null ) ; then
+ for i in $m32rx_files ; do
+ if test -f $i && (grep sanitize-m32rx $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Keeping m32rx stuff in $i
+ fi
+ fi
+ done
+else
+ for i in $m32rx_files ; do
+ if test -f $i && (grep sanitize-m32rx $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Removing traces of \"m32rx\" from $i...
+ fi
+ cp $i new
+ sed '/start\-sanitize\-m32rx/,/end\-sanitize\-m32rx/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