[rtems-testing commit] DesiredSymbols.cc::computeUncovered:

Joel Sherrill joel at rtems.org
Wed Sep 12 17:09:10 UTC 2012


  Ensure all bytes in a NOP are marked as executed
User-Agent: Heirloom mailx 12.4 7/29/08
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Module:    rtems-testing
Branch:    master
Commit:    6de122e4d3d4037865970d2fa12aab57ee1eb1c4
Changeset: http://git.rtems.org/rtems-testing/commit/?id=6de122e4d3d4037865970d2fa12aab57ee1eb1c4

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Wed Sep 12 12:09:57 2012 -0500

DesiredSymbols.cc::computeUncovered: Ensure all bytes in a NOP are marked as executed

---

 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;
       }
 




More information about the vc mailing list