aboutsummaryrefslogtreecommitdiff
path: root/sim/mips/.Sanitize
diff options
context:
space:
mode:
authorGavin Romig-Koch <gavin@redhat.com>1998-06-29 13:30:01 +0000
committerGavin Romig-Koch <gavin@redhat.com>1998-06-29 13:30:01 +0000
commit46eb9e5a57033d36030dbb855a1f10ee63cc7f2c (patch)
tree2ffc6d7fa24fd8cb013c6beb5940909ece3de3ff /sim/mips/.Sanitize
parentaaa2c9082cc47f9eb60f3136b44fc94a6a65f544 (diff)
downloadgdb-46eb9e5a57033d36030dbb855a1f10ee63cc7f2c.zip
gdb-46eb9e5a57033d36030dbb855a1f10ee63cc7f2c.tar.gz
gdb-46eb9e5a57033d36030dbb855a1f10ee63cc7f2c.tar.bz2
* interp.c (OPTION_BRANCH_BUG_4011): Add.
(mips_option_handler): Handle OPTION_BRANCH_BUG_4011. (mips_options): Define the option. * mips.igen (check_4011_branch_bug): New. (mark_4011_branch_bug): New. (all branch insn): Call mark_branch_bug, and check_branch_bug. * sim-main.h (branchbug4011_option, branchbug4011_last_target, branchbug4011_last_cia, BRANCHBUG4011_OPTION, BRANCHBUG4011_LAST_TARGET, BRANCHBUG4011_LAST_CIA, check_branch_bug, mark_branch_bug): Define.
Diffstat (limited to 'sim/mips/.Sanitize')
-rw-r--r--sim/mips/.Sanitize28
1 files changed, 27 insertions, 1 deletions
diff --git a/sim/mips/.Sanitize b/sim/mips/.Sanitize
index 57ed578..7bef23e 100644
--- a/sim/mips/.Sanitize
+++ b/sim/mips/.Sanitize
@@ -300,7 +300,33 @@ else
done
fi
-
+branchbug4011_files="interp.c mips.igen sim-main.h ChangeLog"
+if ( echo $* | grep keep\-branchbug4011 > /dev/null ) ; then
+ for i in $branchbug4011_files ; do
+ if test ! -d $i && (grep sanitize-branchbug4011 $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Keeping branchbug4011 stuff in $i
+ fi
+ fi
+ done
+else
+ for i in $branchbug4011_files ; do
+ if test -r $i && (grep sanitize-branchbug4011 $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Removing traces of \"branchbug4011\" from $i...
+ fi
+ cp $i new
+ sed '/start\-sanitize\-branchbug4011/,/end\-sanitize\-branchbug4011/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
never_files="ChangeLog configure configure.in interp.c gencode.c mips.igen mips.dc"