summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2012-09-12 17:09:57 (UTC)
committerJoel Sherrill <joel.sherrill@oarcorp.com>2012-09-12 17:09:57 (UTC)
commit6de122e4d3d4037865970d2fa12aab57ee1eb1c4 (patch)
tree143db532f8781913925531e94570d62feffd162e
parent78a76a62483cb6d2e895dbe77de97893ca80fb5b (diff)
downloadrtems-testing-6de122e4d3d4037865970d2fa12aab57ee1eb1c4.tar.bz2
DesiredSymbols.cc::computeUncovered: Ensure all bytes in a NOP are marked as executed
-rw-r--r--covoar/DesiredSymbols.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/covoar/DesiredSymbols.cc b/covoar/DesiredSymbols.cc
index f7a4a0b..6b780dd 100644
--- a/covoar/DesiredSymbols.cc
+++ b/covoar/DesiredSymbols.cc
@@ -238,7 +238,12 @@ namespace Coverage {
break;
if (theCoverageMap->isNop( ha ))
- theCoverageMap->setWasExecuted( ha );
+ do {
+ theCoverageMap->setWasExecuted( ha );
+ ha++;
+ if ( ha >= endAddress )
+ break;
+ } while ( !theCoverageMap->isStartOfInstruction( ha ) );
a = ha;
}