<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>change log for gcc-testing (2010-05-14)</title>
</head>
<body text='#000000' bgcolor='#ffffff'>
<a name='cs1'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
 <font color='#bb2222'><strong>jennifer</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-05-14 Jennifer Averett <Jennifer.Averett@OARcorp.com>

        * ReportsText.cc: Modified text report data to match html report data.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//gcc-testing/rtems-coverage/ChangeLog.diff?r1=text&tr1=1.250&r2=text&tr2=1.251&diff_format=h">M</a></td><td width='1%'>1.251</td><td width='100%'>rtems-coverage/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//gcc-testing/rtems-coverage/ReportsText.cc.diff?r1=text&tr1=1.6&r2=text&tr2=1.7&diff_format=h">M</a></td><td width='1%'>1.7</td><td width='100%'>rtems-coverage/ReportsText.cc</td></tr>
</table>
<pre>
<font color='#006600'>diff -u gcc-testing/rtems-coverage/ChangeLog:1.250 gcc-testing/rtems-coverage/ChangeLog:1.251
--- gcc-testing/rtems-coverage/ChangeLog:1.250  Fri May 14 12:26:34 2010
+++ gcc-testing/rtems-coverage/ChangeLog        Fri May 14 13:49:57 2010
</font><font color='#997700'>@@ -1,5 +1,9 @@
</font> 2010-05-14        Jennifer Averett <Jennifer.Averett@OARcorp.com>
 
<font color='#000088'>+   * ReportsText.cc: Modified text report data to match html report data.
+
+2010-05-14     Jennifer Averett <Jennifer.Averett@OARcorp.com>
+
</font>   * CoverageRanges.cc, CoverageRanges.h, DesiredSymbols.cc,
        DesiredSymbols.h, ReportsBase.cc, ReportsBase.h, ReportsHtml.cc,
        ReportsHtml.h, ReportsText.cc, ReportsText.h, covoar.cc, covoar.css:

<font color='#006600'>diff -u gcc-testing/rtems-coverage/ReportsText.cc:1.6 gcc-testing/rtems-coverage/ReportsText.cc:1.7
--- gcc-testing/rtems-coverage/ReportsText.cc:1.6       Fri May 14 12:26:35 2010
+++ gcc-testing/rtems-coverage/ReportsText.cc   Fri May 14 13:49:57 2010
</font><font color='#997700'>@@ -145,11 +145,12 @@
</font>   fprintf(
     report,
     "============================================\n"
<font color='#880000'>-    "Index         : %d\n"
-    "Symbol        : %s (0x%x)\n"
-    "Starting Line : %s (0x%x)\n"
-    "Ending Line   : %s (0x%x)\n"
-    "Size in Bytes : %d\n\n",
</font><font color='#000088'>+    "Index                : %d\n"
+    "Symbol               : %s (0x%x)\n"
+    "Starting Line        : %s (0x%x)\n"
+    "Ending Line          : %s (0x%x)\n"
+    "Size in Bytes        : %d\n"
+    "Size in Instructions : %d\n\n",
</font>     ritr->id,
     ditr->first.c_str(),
     ditr->second.baseAddress,
<font color='#997700'>@@ -157,7 +158,8 @@
</font>     ritr->lowAddress,
     ritr->highSourceLine.c_str(),
     ritr->highAddress,
<font color='#880000'>-    ritr->highAddress - ritr->lowAddress + 1
</font><font color='#000088'>+    ritr->highAddress - ritr->lowAddress + 1,
+    ritr->instructionCount
</font>   );
 
   explanation = AllExplanations->lookupExplanation( ritr->lowSourceLine );
<font color='#997700'>@@ -211,6 +213,43 @@
</font>   Coverage::DesiredSymbols::symbolSet_t::iterator symbol
 )
 {
<font color='#000088'>+  float uncoveredBytes;
+  float uncoveredInstructions;
+
+  if ( symbol->second.stats.sizeInInstructions == 0 )
+    uncoveredInstructions = 0;
+  else
+    uncoveredInstructions = (symbol->second.stats.uncoveredInstructions*100.0)/
+                            symbol->second.stats.sizeInInstructions;
+
+  if ( symbol->second.stats.sizeInBytes == 0 )
+    uncoveredBytes = 0;
+  else
+    uncoveredBytes = (symbol->second.stats.uncoveredBytes*100.0)/
+                     symbol->second.stats.sizeInBytes;
+
+  fprintf(
+    report,
+    "============================================\n"
+    "Symbol                            : %s\n"
+    "Total Size in Bytes               : %d\n"
+    "Total Size in Instructions        : %d\n"
+    "Total number Branches             : %d\n"
+    "Total Always Taken                : %d\n"
+    "Total Never Taken                 : %d\n"
+    "Percentage Uncovered Instructions : %.2f\n"
+    "Percentage Uncovered Bytes        : %.2f\n",
+    symbol->first.c_str(),
+    symbol->second.stats.sizeInBytes,
+    symbol->second.stats.sizeInInstructions,
+    symbol->second.stats.branchesNotExecuted +  symbol->second.stats.branchesExecuted,
+    symbol->second.stats.branchesAlwaysTaken,
+    symbol->second.stats.branchesNeverTaken,
+    uncoveredInstructions,
+    uncoveredBytes
+  );
+
+  fprintf(report, "============================================\n");
</font>   return true;
 }
 
</pre>
<p> </p>

<p>--<br />
<small>Generated by <a href="http://www.codewiz.org/projects/index.html#loginfo">Deluxe Loginfo</a> 2.122 by Bernardo Innocenti <bernie@develer.com></small></p>
</body>
</html>