summaryrefslogtreecommitdiff
path: root/sim-scripts
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-09-15 21:50:20 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-09-15 21:50:20 +0000
commitcf578010b0238b261580e59868e5815f1e02d0dd (patch)
tree544d0ea7aceec4f07ab310c5994fecdc3ba19de7 /sim-scripts
parent8a315c2f392cab16ece255b907b092da91f35219 (diff)
2009-09-15 Joel Sherrill <joel.sherrill@OARcorp.com>
* gdb-sim-run.in, tsim-support: tsim does not like stty sane.
Diffstat (limited to 'sim-scripts')
-rw-r--r--sim-scripts/ChangeLog4
-rwxr-xr-xsim-scripts/gdb-sim-run.in3
-rw-r--r--sim-scripts/tsim-support1
3 files changed, 7 insertions, 1 deletions
diff --git a/sim-scripts/ChangeLog b/sim-scripts/ChangeLog
index d633037..3158920 100644
--- a/sim-scripts/ChangeLog
+++ b/sim-scripts/ChangeLog
@@ -1,3 +1,7 @@
+2009-09-15 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * gdb-sim-run.in, tsim-support: tsim does not like stty sane.
+
2009-09-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile: Add script to check for END OF test messages.
diff --git a/sim-scripts/gdb-sim-run.in b/sim-scripts/gdb-sim-run.in
index 892c416..a8ebccb 100755
--- a/sim-scripts/gdb-sim-run.in
+++ b/sim-scripts/gdb-sim-run.in
@@ -132,6 +132,7 @@ bspSimTrustedToExit="no"
bspSupportsGDBServerMode="no"
bspSupportsDisplayAdapter="no"
bspSupportsNIC="no"
+bspNeedsSttySane="yes"
for v in 4.10 4.9 4.8 4.7 ""
do
@@ -259,7 +260,7 @@ runtest()
max_run_time=${3}
# Just in case the simulator aborts and messes up the terminal
- trap "stty sane" SIGABRT return
+ trap "test ${bspNeedsSttySane} = yes && stty sane" SIGABRT return
test ${verbose} == 'yes' && echo ${runBSP} `runARGS ${testname}`
diff --git a/sim-scripts/tsim-support b/sim-scripts/tsim-support
index 6ca1d0b..961a66b 100644
--- a/sim-scripts/tsim-support
+++ b/sim-scripts/tsim-support
@@ -8,6 +8,7 @@ runBSP=tsim-${tsimName}
bspUsesGDBSimulator="no"
bspGeneratesGDBCommands="yes"
bspSupportsGDBServerMode="yes"
+bspNeedsSttySane="no"
type ${runBSP} >/dev/null 2>&1
if [ $? -ne 0 ] ; then