aboutsummaryrefslogtreecommitdiff
path: root/opcodes/.Sanitize
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-04-01 16:56:06 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-04-01 16:56:06 +0000
commitf7ed13c7d50d5eb44360d2dd991e78c574460064 (patch)
tree687fb4d06db813458d01e3c1726fe4c5af4f507f /opcodes/.Sanitize
parentd1c89c281780bf3f8a3c584e5b44926ff347a442 (diff)
downloadgdb-f7ed13c7d50d5eb44360d2dd991e78c574460064.zip
gdb-f7ed13c7d50d5eb44360d2dd991e78c574460064.tar.gz
gdb-f7ed13c7d50d5eb44360d2dd991e78c574460064.tar.bz2
merge binutils and gdb sparc disassemblers
Diffstat (limited to 'opcodes/.Sanitize')
-rw-r--r--opcodes/.Sanitize21
1 files changed, 21 insertions, 0 deletions
diff --git a/opcodes/.Sanitize b/opcodes/.Sanitize
index 5b3c6de..e7eae02 100644
--- a/opcodes/.Sanitize
+++ b/opcodes/.Sanitize
@@ -52,4 +52,25 @@ else
mv new sparc-opc.c
fi
+
+v9dirty="sparc-pinsn.c"
+
+if ( echo $* | grep keep\-v9 > /dev/null ) ; then
+ echo Keeping v9 in ${v9dirty}
+else
+ for i in ${v9dirty} ; do
+ echo Sanitizing v9 in $i
+ rm -f new
+ sed '/^#ifndef[ ]NO_V9/,/^#endif/d' < $i > new
+ if grep -s -i v9 new ; then
+ echo ***** SANITIZING V9 IN $i FAILED *****
+ fi
+ if [ -n "${safe}" ] ; then
+ mv $i .Recover
+ else
+ rm $i
+ fi
+ mv new $i
+ done
+fi
# End of file.