diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-09-12 12:09:57 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-09-12 12:09:57 -0500 |
commit | 6de122e4d3d4037865970d2fa12aab57ee1eb1c4 (patch) | |
tree | 143db532f8781913925531e94570d62feffd162e /covoar/DesiredSymbols.cc | |
parent | gcc test scripts: add v850 target support (diff) | |
download | rtems-testing-6de122e4d3d4037865970d2fa12aab57ee1eb1c4.tar.bz2 |
DesiredSymbols.cc::computeUncovered: Ensure all bytes in a NOP are marked as executed
Diffstat (limited to 'covoar/DesiredSymbols.cc')
-rw-r--r-- | covoar/DesiredSymbols.cc | 7 |
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; } |