aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>1998-11-06 00:10:54 +0000
committerDoug Evans <dje@google.com>1998-11-06 00:10:54 +0000
commit71e6edeab4a6da312ba584946e2d66e2477fa49c (patch)
treedcbe5f9d9ef8b9e9561c64e7052bff5459955e9b /opcodes
parent04ad3a5905d70a683b7f2c1a9635b3a7fd96927a (diff)
downloadgdb-71e6edeab4a6da312ba584946e2d66e2477fa49c.zip
gdb-71e6edeab4a6da312ba584946e2d66e2477fa49c.tar.gz
gdb-71e6edeab4a6da312ba584946e2d66e2477fa49c.tar.bz2
redo fr30 sanitization
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/.Sanitize41
1 files changed, 36 insertions, 5 deletions
diff --git a/opcodes/.Sanitize b/opcodes/.Sanitize
index aeb3665..944a219 100644
--- a/opcodes/.Sanitize
+++ b/opcodes/.Sanitize
@@ -23,6 +23,14 @@ else
lose_these_too="${cygnus_files} ${lose_these_too}"
fi
+fr30_files="fr30-opc.h fr30-opc.c fr30-asm.c fr30-dis.c"
+
+if ( echo $* | grep keep\-fr30 > /dev/null ) ; then
+ keep_these_too="${fr30_files} ${keep_these_too}"
+else
+ lose_these_too="${fr30_files} ${lose_these_too}"
+fi
+
tic80_files="tic80-opc.c tic80-dis.c"
if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
@@ -120,11 +128,6 @@ z8kgen.c
Things-to-lose:
-fr30-asm.c
-fr30-dis.c
-fr30-opc.c
-fr30-opc.h
-
Do-last:
cygnus_files="ChangeLog Makefile.am Makefile.in configure.in configure"
@@ -381,6 +384,34 @@ else
done
fi
+fr30_files="ChangeLog Makefile.in Makefile.am configure.in configure disassemble.c"
+if ( echo $* | grep keep\-fr30 > /dev/null ) ; then
+ for i in $fr30_files ; do
+ if test ! -d $i && (grep sanitize-fr30 $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Keeping fr30 stuff in $i
+ fi
+ fi
+ done
+else
+ for i in $fr30_files ; do
+ if test ! -d $i && (grep sanitize-fr30 $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Removing traces of \"fr30\" from $i...
+ fi
+ cp $i new
+ sed '/start\-sanitize\-fr30/,/end-\sanitize\-fr30/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
+
coldfire_files="ChangeLog m68k-opc.c"
if ( echo $* | grep keep\-coldfire > /dev/null ) ; then
for i in $coldfire_files ; do