aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>1997-12-16 14:28:24 +0000
committerNick Clifton <nickc@redhat.com>1997-12-16 14:28:24 +0000
commit3da7442d168b7d5735eba68d62631f130e797ce4 (patch)
treed0bd80946c68fc2d2bca5368d253bcf13c1df3ad /include
parent0379d9b25c45bc84c862b62897d5c51741278714 (diff)
downloadgdb-3da7442d168b7d5735eba68d62631f130e797ce4.zip
gdb-3da7442d168b7d5735eba68d62631f130e797ce4.tar.gz
gdb-3da7442d168b7d5735eba68d62631f130e797ce4.tar.bz2
Added m32rx sanitization
Diffstat (limited to 'include')
-rw-r--r--include/elf/.Sanitize28
1 files changed, 28 insertions, 0 deletions
diff --git a/include/elf/.Sanitize b/include/elf/.Sanitize
index 173984e..6b93f60 100644
--- a/include/elf/.Sanitize
+++ b/include/elf/.Sanitize
@@ -99,6 +99,34 @@ else
done
fi
+m32rx_files="ChangeLog m32r.h"
+if ( echo $* | grep keep\-m32rx > /dev/null ) ; then
+ for i in $m32rx_files ; do
+ if test ! -d $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 ! -d $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