aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Hunt <hunt@redhat.com>1996-08-02 00:22:58 +0000
committerMartin Hunt <hunt@redhat.com>1996-08-02 00:22:58 +0000
commit745a0437db96f667ba50ad4aaaaff8907a2ba67c (patch)
tree00f45f25fc04ae55d359cdba4cc4ce5ba37285ac
parentc1ebd1ce1799a6068f94039ec711a135223259e8 (diff)
downloadgdb-745a0437db96f667ba50ad4aaaaff8907a2ba67c.zip
gdb-745a0437db96f667ba50ad4aaaaff8907a2ba67c.tar.gz
gdb-745a0437db96f667ba50ad4aaaaff8907a2ba67c.tar.bz2
Thu Aug 1 17:08:41 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
* configure.in (d10v-*-*): Added D10V simulator.
-rw-r--r--sim/.Sanitize40
-rw-r--r--sim/configure.in3
2 files changed, 43 insertions, 0 deletions
diff --git a/sim/.Sanitize b/sim/.Sanitize
index e76cdd5..ff0bd92 100644
--- a/sim/.Sanitize
+++ b/sim/.Sanitize
@@ -15,6 +15,13 @@
Do-first:
+d10v_files="d10v"
+if ( echo $* | grep keep\-d10v > /dev/null ) ; then
+ keep_these_too="${d10v_files} ${keep_these_too}"
+else
+ lose_these_too="${d10v_files} ${lose_these_too}"
+fi
+
# All files listed between the "Things-to-keep:" line and the
# "Files-to-sed:" line will be kept. All other files will be removed.
# Directories listed in this section will have their own Sanitize
@@ -42,4 +49,37 @@ Things-to-lose:
Do-last:
+d10v_files="d10v"
+if ( echo $* | grep keep\-d10v > /dev/null ) ; then
+ for i in $d10v_files ; do
+ if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Keeping d10v stuff in $i
+ fi
+ fi
+ done
+else
+ for i in $d10v_files ; do
+ if test ! -d $i && (grep sanitize-d10v $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Removing traces of \"d10v\" from $i...
+ fi
+ cp $i new
+ sed '/start\-sanitize\-d10v/,/end-\sanitize\-d10v/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
+ fi
+done
+
# End of file.
diff --git a/sim/configure.in b/sim/configure.in
index d3eec69..004f014 100644
--- a/sim/configure.in
+++ b/sim/configure.in
@@ -45,6 +45,9 @@ esac],[if test x"$GCC" != x""; then powerpc_sim=yes; else powerpc_sim=no; fi])
case "${target}" in
arm*-*-*) sim_target=arm ;;
+# start-sanitize-d10v
+ d10v-*-*) sim_target=d10v ;;
+# end-sanitize-d10v
h8300*-*-*) sim_target=h8300 ;;
h8500-*-*) sim_target=h8500 ;;
mips*-*-*) sim_target=mips ;;