<!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-25)</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-25 Jennifer Averett <Jennifer.Averett@OARcorp.com>

        * ReportsBase.cc, ReportsBase.h, ReportsHtml.cc, covoar.cc: Moved the
        summary report to the covoar common reports in the report class and
        out of the rtems specific items in the report index.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//gcc-testing/covoar/ChangeLog.diff?r1=text&tr1=1.2&r2=text&tr2=1.3&diff_format=h">M</a></td><td width='1%'>1.3</td><td width='100%'>covoar/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//gcc-testing/covoar/ReportsBase.h.diff?r1=text&tr1=1.1&r2=text&tr2=1.2&diff_format=h">M</a></td><td width='1%'>1.2</td><td width='100%'>covoar/ReportsBase.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//gcc-testing/covoar/ReportsBase.cc.diff?r1=text&tr1=1.2&r2=text&tr2=1.3&diff_format=h">M</a></td><td width='1%'>1.3</td><td width='100%'>covoar/ReportsBase.cc</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//gcc-testing/covoar/ReportsHtml.cc.diff?r1=text&tr1=1.1&r2=text&tr2=1.2&diff_format=h">M</a></td><td width='1%'>1.2</td><td width='100%'>covoar/ReportsHtml.cc</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//gcc-testing/covoar/covoar.cc.diff?r1=text&tr1=1.1&r2=text&tr2=1.2&diff_format=h">M</a></td><td width='1%'>1.2</td><td width='100%'>covoar/covoar.cc</td></tr>
</table>
<pre>
<font color='#006600'>diff -u gcc-testing/covoar/ChangeLog:1.2 gcc-testing/covoar/ChangeLog:1.3
--- gcc-testing/covoar/ChangeLog:1.2    Mon May 24 15:21:25 2010
+++ gcc-testing/covoar/ChangeLog        Tue May 25 12:50:57 2010
</font><font color='#997700'>@@ -1,3 +1,9 @@
</font><font color='#000088'>+2010-05-25    Jennifer Averett <Jennifer.Averett@OARcorp.com>
+
+       * ReportsBase.cc, ReportsBase.h, ReportsHtml.cc, covoar.cc: Moved the
+       summary report to the covoar common reports in the report class and
+       out of the rtems specific items in the report index.
+
</font> 2010-05-24        Joel Sherrill <joel.sherrilL@OARcorp.com>
 
        * ConfigFile.cc, ReportsBase.cc: Fix warnings.

<font color='#006600'>diff -u gcc-testing/covoar/ReportsBase.h:1.1 gcc-testing/covoar/ReportsBase.h:1.2
--- gcc-testing/covoar/ReportsBase.h:1.1        Mon May 24 15:07:08 2010
+++ gcc-testing/covoar/ReportsBase.h    Tue May 25 12:50:58 2010
</font><font color='#997700'>@@ -91,6 +91,13 @@
</font>     );
 
     /*!
<font color='#000088'>+     *  This method produces a sumary report for the overall test run.
+     */
+    static void  WriteSummaryReport(
+      const char* const fileName
+    );
+
+    /*!
</font>      *  This method returns the unique extension for the Report
      *  type.  If the extension is ".txt" files will be<span style="background-color: #FF0000"> </span>
      *  named "annotated.txt", "branch.txt" ......
<font color='#997700'>@@ -126,7 +133,7 @@
</font>      *
      *  @param[in] fileName identifies the report file name
      */
<font color='#880000'>-     virtual FILE* OpenFile(
</font><font color='#000088'>+     static FILE* OpenFile(
</font>       const char* const fileName
     );
 
<font color='#997700'>@@ -197,7 +204,7 @@
</font>      *
      *  @param[in] aFile identifies the report file name
      */
<font color='#880000'>-    void CloseFile(
</font><font color='#000088'>+    static void CloseFile(
</font>       FILE*  aFile
     );
 

<font color='#006600'>diff -u gcc-testing/covoar/ReportsBase.cc:1.2 gcc-testing/covoar/ReportsBase.cc:1.3
--- gcc-testing/covoar/ReportsBase.cc:1.2       Mon May 24 15:21:25 2010
+++ gcc-testing/covoar/ReportsBase.cc   Tue May 25 12:50:58 2010
</font><font color='#997700'>@@ -423,6 +423,86 @@
</font>   CloseSymbolSummaryFile( report );
 }
 
<font color='#000088'>+void  ReportsBase::WriteSummaryReport(
+  const char* const fileName
+)
+{
+    // Calculate coverage statistics and output results.
+  uint32_t                                        a;
+  uint32_t                                        endAddress;
+  Coverage::DesiredSymbols::symbolSet_t::iterator itr;
+  uint32_t                                        notExecuted = 0;
+  double                                          percentage;
+  Coverage::CoverageMapBase*                      theCoverageMap;
+  uint32_t                                        totalBytes = 0;
+  FILE*                                           report;
+
+  // Open the report file.
+  report = OpenFile( fileName );
+  if ( !report ) {
+    return;
+  }
+
+  // Look at each symbol.
+  for (itr = SymbolsToAnalyze->set.begin();
+       itr != SymbolsToAnalyze->set.end();
+       itr++) {
+
+    // If the symbol's unified coverage map exists, scan through it
+    // and count bytes.
+    theCoverageMap = itr->second.unifiedCoverageMap;
+    if (theCoverageMap) {
+
+      endAddress = itr->second.stats.sizeInBytes - 1;
+
+      for (a = 0; a <= endAddress; a++) {
+        totalBytes++;
+        if (!theCoverageMap->wasExecuted( a ))
+          notExecuted++;
+      }
+    }
+  }
+
+  percentage = (double) notExecuted;
+  percentage /= (double) totalBytes;
+  percentage *= 100.0;
+
+  fprintf( report, "Bytes Analyzed           : %d\n", totalBytes );
+  fprintf( report, "Bytes Not Executed       : %d\n", notExecuted );
+  fprintf( report, "Percentage Executed      : %5.4g\n", 100.0 - percentage  );
+  fprintf( report, "Percentage Not Executed  : %5.4g\n", percentage  );
+  fprintf(
+    report,
+    "Uncovered ranges found   : %d\n",
+    SymbolsToAnalyze->getNumberUncoveredRanges()
+  );
+  if ((SymbolsToAnalyze->getNumberBranchesFound() == 0) ||<span style="background-color: #FF0000"> </span>
+      (BranchInfoAvailable == false) ) {
+    fprintf( report, "No branch information available\n" );
+  } else {
+    fprintf(
+      report,
+      "Total branches found     : %d\n",
+      SymbolsToAnalyze->getNumberBranchesFound()
+    );
+    fprintf(
+      report,
+      "Uncovered branches found : %d\n",
+      SymbolsToAnalyze->getNumberBranchesAlwaysTaken() +
+       SymbolsToAnalyze->getNumberBranchesNeverTaken()
+    );
+    fprintf(
+      report,
+      "   %d branches always taken\n",
+      SymbolsToAnalyze->getNumberBranchesAlwaysTaken()
+    );
+    fprintf(
+      report,
+      "   %d branches never taken\n",
+      SymbolsToAnalyze->getNumberBranchesNeverTaken()
+    );
+  }
+}
</font> 
 void GenerateReports()
 {
<font color='#997700'>@@ -492,7 +572,8 @@
</font>     reports = *ritr;
     delete reports;
   }
<font color='#880000'>-<span style="background-color: #FF0000">  </span>
</font><font color='#000088'>+
+  ReportsBase::WriteSummaryReport( "summary.txt" );
</font> }
 
 }

<font color='#006600'>diff -u gcc-testing/covoar/ReportsHtml.cc:1.1 gcc-testing/covoar/ReportsHtml.cc:1.2
--- gcc-testing/covoar/ReportsHtml.cc:1.1       Mon May 24 15:07:08 2010
+++ gcc-testing/covoar/ReportsHtml.cc   Tue May 25 12:50:58 2010
</font><font color='#997700'>@@ -86,6 +86,7 @@
</font> 
     fprintf( aFile, "<ul>\n" );
 
<font color='#000088'>+    PRINT_TEXT_ITEM( "Summary",         "summary.txt" );
</font>     PRINT_ITEM( "Coverage Report",      "uncovered" );
     PRINT_ITEM( "Branch Report",        "branch" );
     PRINT_ITEM( "Annotated Assembly",   "annotated" );

<font color='#006600'>diff -u gcc-testing/covoar/covoar.cc:1.1 gcc-testing/covoar/covoar.cc:1.2
--- gcc-testing/covoar/covoar.cc:1.1    Mon May 24 15:07:09 2010
+++ gcc-testing/covoar/covoar.cc        Tue May 25 12:50:59 2010
</font><font color='#997700'>@@ -461,71 +461,5 @@
</font>     AllExplanations->writeNotFound( notFound.c_str() );
   }
 
<font color='#880000'>-  // Calculate coverage statistics and output results.
-  {
-    uint32_t                                        a;
-    uint32_t                                        endAddress;
-    Coverage::DesiredSymbols::symbolSet_t::iterator itr;
-    uint32_t                                        notExecuted = 0;
-    double                                          percentage;
-    Coverage::CoverageMapBase*                      theCoverageMap;
-    uint32_t                                        totalBytes = 0;
-
-    // Look at each symbol.
-    for (itr = SymbolsToAnalyze->set.begin();
-         itr != SymbolsToAnalyze->set.end();
-         itr++) {
-
-      // If the symbol's unified coverage map exists, scan through it
-      // and count bytes.
-      theCoverageMap = itr->second.unifiedCoverageMap;
-      if (theCoverageMap) {
-
-        endAddress = itr->second.stats.sizeInBytes - 1;
-
-        for (a = 0; a <= endAddress; a++) {
-          totalBytes++;
-          if (!theCoverageMap->wasExecuted( a ))
-            notExecuted++;
-        }
-      }
-    }
-
-    percentage = (double) notExecuted;
-    percentage /= (double) totalBytes;
-    percentage *= 100.0;
-
-    printf( "Bytes Analyzed           : %d\n", totalBytes );
-    printf( "Bytes Not Executed       : %d\n", notExecuted );
-    printf( "Percentage Executed      : %5.4g\n", 100.0 - percentage  );
-    printf( "Percentage Not Executed  : %5.4g\n", percentage  );
-    printf(
-      "Uncovered ranges found   : %d\n",
-      SymbolsToAnalyze->getNumberUncoveredRanges()
-    );
-    if ((SymbolsToAnalyze->getNumberBranchesFound() == 0) ||<span style="background-color: #FF0000"> </span>
-        (BranchInfoAvailable == false) ) {
-      printf( "No branch information available\n" );
-    } else {
-      printf(
-        "Total branches found     : %d\n",
-        SymbolsToAnalyze->getNumberBranchesFound()
-      );
-      printf(
-        "Uncovered branches found : %d\n",
-        SymbolsToAnalyze->getNumberBranchesAlwaysTaken() +
-         SymbolsToAnalyze->getNumberBranchesNeverTaken()
-      );
-      printf(
-        "   %d branches always taken\n",
-        SymbolsToAnalyze->getNumberBranchesAlwaysTaken()
-      );
-      printf(
-        "   %d branches never taken\n",
-        SymbolsToAnalyze->getNumberBranchesNeverTaken()
-      );
-    }
-  }
-
</font>   return 0;
 }
</pre>
<p> </p>
<a name='cs2'></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-25 Jennifer Averett <Jennifer.Averett@OARcorp.com>

        * do_coverage, rtems_items.sed: Moved the summary report to the covoar
        common reports in the report class and out of the rtems specific
        items in the report index.
</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.274&r2=text&tr2=1.275&diff_format=h">M</a></td><td width='1%'>1.275</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/do_coverage.diff?r1=text&tr1=1.64&r2=text&tr2=1.65&diff_format=h">M</a></td><td width='1%'>1.65</td><td width='100%'>rtems-coverage/do_coverage</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//gcc-testing/rtems-coverage/rtems_items.sed.diff?r1=text&tr1=1.2&r2=text&tr2=1.3&diff_format=h">M</a></td><td width='1%'>1.3</td><td width='100%'>rtems-coverage/rtems_items.sed</td></tr>
</table>
<pre>
<font color='#006600'>diff -u gcc-testing/rtems-coverage/ChangeLog:1.274 gcc-testing/rtems-coverage/ChangeLog:1.275
--- gcc-testing/rtems-coverage/ChangeLog:1.274  Mon May 24 15:16:34 2010
+++ gcc-testing/rtems-coverage/ChangeLog        Tue May 25 12:51:12 2010
</font><font color='#997700'>@@ -1,3 +1,9 @@
</font><font color='#000088'>+2010-05-25    Jennifer Averett <Jennifer.Averett@OARcorp.com>
+
+       * do_coverage, rtems_items.sed: Moved the summary report to the covoar
+       common reports in the report class and out of the rtems specific
+       items in the report index.
+
</font> 2010-05-24        TEAM
 
        * covoar source split out to own directory.

<font color='#006600'>diff -u gcc-testing/rtems-coverage/do_coverage:1.64 gcc-testing/rtems-coverage/do_coverage:1.65
--- gcc-testing/rtems-coverage/do_coverage:1.64 Mon May 24 15:07:02 2010
+++ gcc-testing/rtems-coverage/do_coverage      Tue May 25 12:51:12 2010
</font><font color='#997700'>@@ -356,7 +356,7 @@
</font>   rm -rf ${results_dir}
   mkdir  ${results_dir}
   covoar -C ${BASEDIR}/${BSP}-tests/config \
<font color='#880000'>-    *.exe > ${results_dir}/summary.txt
</font><font color='#000088'>+    *.exe
</font>   check_status $? "covoar failed"
 
   # This should be made obsolete by sortable tables.<span style="background-color: #FF0000"> </span>

<font color='#006600'>diff -u gcc-testing/rtems-coverage/rtems_items.sed:1.2 gcc-testing/rtems-coverage/rtems_items.sed:1.3
--- gcc-testing/rtems-coverage/rtems_items.sed:1.2      Fri May 21 09:54:29 2010
+++ gcc-testing/rtems-coverage/rtems_items.sed  Tue May 25 12:51:12 2010
</font><font color='#997700'>@@ -2,7 +2,6 @@
</font> <\/ul>\
 <strong>RTEMS Specific Reports<\/strong>\
   <ul>\
<font color='#880000'>-  <li>Summary (<a href="summary.txt">text<\/a>)<\/li>\
</font>   <li>Configuration (<a href="configuration.txt">text<\/a>)<\/li>\
   <li>Tests With Possible Issues \
     (<a href="testsWithNoEndOfTest.txt">text<\/a>)<\/li>\
</pre>
<p> </p>
<a name='cs3'></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-25 Jennifer.Averett <Jennifer.Averett@OARcorp.com>

        * TargetBase.cc: Added -C to objdump and nm calls.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//gcc-testing/covoar/ChangeLog.diff?r1=text&tr1=1.3&r2=text&tr2=1.4&diff_format=h">M</a></td><td width='1%'>1.4</td><td width='100%'>covoar/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//gcc-testing/covoar/TargetBase.cc.diff?r1=text&tr1=1.1&r2=text&tr2=1.2&diff_format=h">M</a></td><td width='1%'>1.2</td><td width='100%'>covoar/TargetBase.cc</td></tr>
</table>
<pre>
<font color='#006600'>diff -u gcc-testing/covoar/ChangeLog:1.3 gcc-testing/covoar/ChangeLog:1.4
--- gcc-testing/covoar/ChangeLog:1.3    Tue May 25 12:50:57 2010
+++ gcc-testing/covoar/ChangeLog        Tue May 25 13:01:47 2010
</font><font color='#997700'>@@ -1,3 +1,7 @@
</font><font color='#000088'>+2010-05-25    Jennifer.Averett <Jennifer.Averett@OARcorp.com>
+
+       * TargetBase.cc: Added -C to objdump and nm calls.
+
</font> 2010-05-25        Jennifer Averett <Jennifer.Averett@OARcorp.com>
 
        * ReportsBase.cc, ReportsBase.h, ReportsHtml.cc, covoar.cc: Moved the

<font color='#006600'>diff -u gcc-testing/covoar/TargetBase.cc:1.1 gcc-testing/covoar/TargetBase.cc:1.2
--- gcc-testing/covoar/TargetBase.cc:1.1        Mon May 24 15:07:08 2010
+++ gcc-testing/covoar/TargetBase.cc    Tue May 25 13:01:47 2010
</font><font color='#997700'>@@ -34,8 +34,8 @@
</font> 
 
     addr2line_m = front + "addr2line";
<font color='#880000'>-    nm_m        = front + "nm";
-    objdump_m   = front + "objdump";
</font><font color='#000088'>+    nm_m        = front + "nm -C";
+    objdump_m   = front + "objdump -C";
</font>   }
 
   TargetBase::~TargetBase()
</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>