aboutsummaryrefslogtreecommitdiff
path: root/opcodes/.Sanitize
diff options
context:
space:
mode:
authorJoern Rennecke <joern.rennecke@embecosm.com>1997-08-29 19:03:06 +0000
committerJoern Rennecke <joern.rennecke@embecosm.com>1997-08-29 19:03:06 +0000
commitbf5ac1b8edb34601e1cb43238d690a6d6c00457e (patch)
tree915aa332ec38f314d43e80e2bff2768c6c9515bc /opcodes/.Sanitize
parent24d2330e75b2edc9a37fe5edd1b5ff282be6f29c (diff)
downloadgdb-bf5ac1b8edb34601e1cb43238d690a6d6c00457e.zip
gdb-bf5ac1b8edb34601e1cb43238d690a6d6c00457e.tar.gz
gdb-bf5ac1b8edb34601e1cb43238d690a6d6c00457e.tar.bz2
SH4 assembler extensions.
Diffstat (limited to 'opcodes/.Sanitize')
-rw-r--r--opcodes/.Sanitize32
1 files changed, 32 insertions, 0 deletions
diff --git a/opcodes/.Sanitize b/opcodes/.Sanitize
index 47f1590..071f919 100644
--- a/opcodes/.Sanitize
+++ b/opcodes/.Sanitize
@@ -321,6 +321,38 @@ else
done
fi
+if [ -n "${verbose}" ] ; then
+ echo Processing \"sh4\"...
+fi
+
+sh4_files="ChangeLog sh-opc.h sh-dis.c"
+if ( echo $* | grep keep\-sh4 > /dev/null ) ; then
+ for i in $sh4_files ; do
+ if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Keeping sh4 stuff in $i
+ fi
+ fi
+ done
+else
+ for i in $sh4_files ; do
+ if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Removing traces of \"sh4\" from $i...
+ fi
+ cp $i new
+ sed -e '/start\-sanitize\-sh4/,/end-\sanitize\-sh4/d' -e 's/.*restore\-sanitize\-sh4//' < $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