summaryrefslogtreecommitdiffstats
path: root/sim-scripts/gdb-sim-run.in
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-09-19 02:56:54 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-09-19 02:56:54 +0000
commitf630cddd9a7f7e030c852d442df360b206e63ee0 (patch)
tree931099c3ad16532f3f23ac67536af3233aa8d438 /sim-scripts/gdb-sim-run.in
parent2009-09-18 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-testing-f630cddd9a7f7e030c852d442df360b206e63ee0.tar.bz2
2009-09-18 Joel Sherrill <joel.sherrill@oarcorp.com>
* gdb-sim-run.in, qemu-rtems.in, skyeye-support: Add support for running coverage/trace on qemu/x86. Fine tune other details to support this.
Diffstat (limited to 'sim-scripts/gdb-sim-run.in')
-rwxr-xr-xsim-scripts/gdb-sim-run.in29
1 files changed, 22 insertions, 7 deletions
diff --git a/sim-scripts/gdb-sim-run.in b/sim-scripts/gdb-sim-run.in
index ea3e993..66d704d 100755
--- a/sim-scripts/gdb-sim-run.in
+++ b/sim-scripts/gdb-sim-run.in
@@ -133,6 +133,8 @@ bspSupportsGDBServerMode="no"
bspSupportsDisplayAdapter="no"
bspSupportsNIC="no"
bspNeedsSttySane="yes"
+bspNeedsTraceConversion="no"
+bspWritesZeroCoverage="no"
for v in 4.10 4.9 4.8 4.7 ""
do
@@ -410,13 +412,26 @@ do
test ${verbose} = "yes" && \
echo BACKGROUND runtest ${toRun} ${testtype} ${limit}
runtest ${toRun} ${testtype} ${limit}
- # some simulators do not always write a coverage file with non-zero length
- # If we see this, try again
- while [ ${coverage} = "yes" -a ! -s ${toRun}.cov ]
- do
- echo Rerunning ${toRun} due to zero length coverage file
- runtest ${toRun} ${testtype} ${limit}
- done
+ if [ ${coverage} = "yes" ] ; then
+
+ # some simulators do not always write a coverage file with non-zero length
+ # If we see this, try again
+ if [ ${bspWritesZeroCoverage} = "yes" ] ; then
+ while [ ${coverage} = "yes" -a ! -s ${toRun}.cov ]
+ do
+ echo Rerunning ${toRun} due to zero length coverage file
+ runtest ${toRun} ${testtype} ${limit}
+ done
+ fi
+
+ # some BSPs produce trace oriented files which need to be converted
+ # to object coverage maps
+ if [ ${bspNeedsTraceConversion} = "yes" ] ; then
+ convertTraceToCoverageMap ${toRun}
+ fi
+
+ fi
+
if [ ${bspGeneratesDeviceTree} = "yes" ] ; then
rm -f ${bspTreeFile}