change log for gcc-testing (2010-05-24)

rtems-vc at rtems.org rtems-vc at rtems.org
Mon May 24 15:10:03 UTC 2010


 *jennifer*:
2010-05-24	Jennifer Averett <Jennifer,.Averett at OARcorp.com>

	* ReportsHtml.cc: Added link to size report. Added a filterable File
	column to reports.

M  1.272  rtems-coverage/ChangeLog
M   1.25  rtems-coverage/ReportsHtml.cc

diff -u gcc-testing/rtems-coverage/ChangeLog:1.271 gcc-testing/rtems-coverage/ChangeLog:1.272
--- gcc-testing/rtems-coverage/ChangeLog:1.271	Fri May 21 15:14:29 2010
+++ gcc-testing/rtems-coverage/ChangeLog	Mon May 24 09:47:05 2010
@@ -1,3 +1,8 @@
+2010-05-24	Jennifer Averett <Jennifer,.Averett at OARcorp.com>
+
+	* ReportsHtml.cc: Added link to size report. Added a filterable File
+	column to reports.
+
 2010-05-21	Jennifer.Averett at OARcorp.com
 
 	* ConfigFile.cc, Makefile, ReportsBase.cc, ReportsBase.h,

diff -u gcc-testing/rtems-coverage/ReportsHtml.cc:1.24 gcc-testing/rtems-coverage/ReportsHtml.cc:1.25
--- gcc-testing/rtems-coverage/ReportsHtml.cc:1.24	Fri May 21 15:14:29 2010
+++ gcc-testing/rtems-coverage/ReportsHtml.cc	Mon May 24 09:47:05 2010
@@ -198,7 +198,8 @@
         "<thead>\n"
         "<tr>\n"
         "<th class=\"table-sortable:default\" align=\"left\">Symbol</th>\n"
-        "<th class=\"table-filterable table-sortable:default\" align=\"left\">Line</th>\n"
+        "<th class=\"table-sortable:default\" align=\"left\">Line</th>\n"
+        "<th class=\"table-filterable table-sortable:default\" align=\"left\">File</th>\n"
         "<th class=\"table-sortable:numeric\" align=\"left\">Size </br>Bytes</th>\n"
         "<th class=\"table-sortable:default\" align=\"left\">Reason</th>\n"
         "<th class=\"table-filterable table-sortable:default\" align=\"left\">Classification</th>\n"
@@ -247,6 +248,7 @@
       "<tr>\n"
       "<th class=\"table-sortable:default\" align=\"left\">Symbol</th>\n"
       "<th class=\"table-sortable:default\" align=\"left\">Range</th>\n"
+      "<th class=\"table-filterable table-sortable:default\" align=\"left\">File</th>\n"
       "<th class=\"table-sortable:numeric\" align=\"left\">Size </br>Bytes</th>\n"
       "<th class=\"table-sortable:numeric\" align=\"left\">Size </br>Instructions</th>\n"
       "<th class=\"table-filterable table-sortable:default\" align=\"left\">Classification</th>\n"
@@ -340,7 +342,8 @@
       "<tr>\n"
       "<th class=\"table-sortable:numeric\" align=\"left\">Size</th>\n"
       "<th class=\"table-sortable:default\" align=\"left\">Symbol</th>\n"
-      "<th class=\"table-sortable:default\" align=\"left\">File</th>\n"
+      "<th class=\"table-sortable:default\" align=\"left\">Line</th>\n"
+      "<th class=\"table-filterable table-sortable:default\" align=\"left\">File</th>\n"
       "</tr>\n"
       "</thead>\n"
       "<tbody>\n",
@@ -486,6 +489,8 @@
   )
   {
     const Coverage::Explanation* explanation;
+    std::string                  temp;
+    int                          i;
 
     // Mark the background color different for odd and even lines.
     if ( ( count%2 ) != 0 )
@@ -507,7 +512,16 @@
       rangePtr->id,
       rangePtr->lowSourceLine.c_str()
     );
-    
+
+    // File
+    i = rangePtr->lowSourceLine.find(":");
+    temp =  rangePtr->lowSourceLine.substr (0, i);
+    fprintf( 
+      report, 
+      "<td class=\"covoar-td\" align=\"center\">%s</td>\n",     
+      temp.c_str()
+    );
+  
     // Size in bytes
     fprintf( 
       report, 
@@ -623,7 +637,13 @@
       "<td class=\"covoar-td\" align=\"center\">unknown</td>\n"
      );
      
-    // Size in bytes
+    // file
+    fprintf( 
+      report, 
+      "<td class=\"covoar-td\" align=\"center\">unknown</td>\n"
+     );
+     
+     // Size in bytes
     fprintf( 
       report, 
       "<td class=\"covoar-td\" align=\"center\">unknown</td>\n"
@@ -656,7 +676,8 @@
   )
   {
     const Coverage::Explanation*   explanation;
-
+    std::string                    temp;
+    int                            i;
 
     // Mark the background color different for odd and even lines.
     if ( ( count%2 ) != 0 )
@@ -679,7 +700,16 @@
       rangePtr->lowSourceLine.c_str(),
       rangePtr->highSourceLine.c_str()
      );
-     
+
+    // File
+    i = rangePtr->lowSourceLine.find(":");
+    temp =  rangePtr->lowSourceLine.substr (0, i);
+    fprintf( 
+      report, 
+      "<td class=\"covoar-td\" align=\"center\">%s</td>\n",     
+      temp.c_str()
+    );
+       
     // Size in bytes
     fprintf( 
       report, 
@@ -732,6 +762,9 @@
     Coverage::CoverageRanges::ranges_t::iterator    range
   )
   {
+    std::string  temp;
+    int          i;
+
     // Mark the background color different for odd and even lines.
     if ( ( count%2 ) != 0 )
       fprintf( report, "<tr class=\"covoar-tr-odd\">\n");
@@ -752,13 +785,23 @@
       symbol->first.c_str()
     );
 
-    // file
+    // line
     fprintf( 
       report, 
-      "<td class=\"covoar-td\" align=\"center\">%s</td>\n",     
+      "<td class=\"covoar-td\" align=\"center\"><a href =\"annotated.html#range%d\">%s</td>\n",     
+      range->id,
       range->lowSourceLine.c_str()
     );
 
+    // File
+    i = range->lowSourceLine.find(":");
+    temp =  range->lowSourceLine.substr (0, i);
+    fprintf( 
+      report, 
+      "<td class=\"covoar-td\" align=\"center\">%s</td>\n",     
+      temp.c_str()
+    );
+    
     fprintf( report, "</tr>\n");
 
     return true;



--

Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20100524/136ed026/attachment.html>


More information about the vc mailing list