Changeset 313e8a3 in rtems-testing


Ignore:
Timestamp:
May 11, 2010, 7:44:52 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
e0aaa1c
Parents:
0ef52d2
Message:

2010-05-11 Joel Sherrill <joel.sherrilL@…>

  • CoverageReaderQEMU.cc, ReportsBase?.cc, app_common.cc, app_common.h, covoar.cc: Now properly know when a trace or coverage format includes or does not include branch information.
Location:
rtems-coverage
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • rtems-coverage/ChangeLog

    r0ef52d2 r313e8a3  
     12010-05-11      Joel Sherrill <joel.sherrilL@OARcorp.com>
     2
     3        * CoverageReaderQEMU.cc, ReportsBase.cc, app_common.cc, app_common.h,
     4        covoar.cc: Now properly know when a trace or coverage format includes
     5        or does not include branch information.
     6
    172010-05-11      Joel Sherrill <joel.sherrilL@OARcorp.com>
    28
  • rtems-coverage/CoverageReaderQEMU.cc

    r0ef52d2 r313e8a3  
    1414#include <sys/stat.h>
    1515
     16#include "app_common.h"
    1617#include "CoverageReaderQEMU.h"
    1718#include "CoverageMap.h"
     
    3637  CoverageReaderQEMU::CoverageReaderQEMU()
    3738  {
     39    BranchInfoAvailable = true;
    3840  }
    3941
  • rtems-coverage/ReportsBase.cc

    r0ef52d2 r313e8a3  
    221221  // Open the branch report file
    222222  report = OpenBranchFile( fileName );
     223
    223224  if (!report)
    224225    return;
    225226
    226   // If no branches were found, then branch coverage is not supported
    227   if (SymbolsToAnalyze->getNumberBranchesFound() == 0)
     227  // If no branches were found of branch coverage is not supported
     228  if ((SymbolsToAnalyze->getNumberBranchesFound() == 0) ||
     229      (BranchInfoAvailable == false) ) {
    228230    PutNoBranchInfo(report);
    229 
    230   // If branches were found, ...
    231   else {
     231    // If branches were found, ...
     232  } else {
    232233
    233234    // Process uncovered branches for each symbol.
  • rtems-coverage/app_common.cc

    r0ef52d2 r313e8a3  
    1818 *  Global variables for the program
    1919 */
    20 Coverage::Explanations*     AllExplanations  = NULL;
    21 Coverage::ObjdumpProcessor* objdumpProcessor = NULL;
    22 Coverage::DesiredSymbols*   SymbolsToAnalyze = NULL;
    23 Coverage::Toolnames*        Tools            = NULL;
    24 bool                        Verbose          = false;
    25 const char*                 outputDirectory = ".";
     20Coverage::Explanations*     AllExplanations     = NULL;
     21Coverage::ObjdumpProcessor* objdumpProcessor    = NULL;
     22Coverage::DesiredSymbols*   SymbolsToAnalyze    = NULL;
     23Coverage::Toolnames*        Tools               = NULL;
     24bool                        Verbose             = false;
     25const char*                 outputDirectory     = ".";
     26bool                        BranchInfoAvailable = false;
    2627
    2728bool FileIsNewer( const char *f1, const char *f2 ) {
  • rtems-coverage/app_common.h

    r0ef52d2 r313e8a3  
    1818extern bool                         Verbose;
    1919extern const char*                  outputDirectory;
     20extern bool                         BranchInfoAvailable;
    2021
    2122bool FileIsNewer( const char *f1, const char *f2 );
  • rtems-coverage/covoar.cc

    r0ef52d2 r313e8a3  
    422422      SymbolsToAnalyze->getNumberUncoveredRanges()
    423423    );
    424     if (SymbolsToAnalyze->getNumberBranchesFound() == 0)
    425       printf( "MAIN No branch information found\n" );
    426     else {
     424    if ((SymbolsToAnalyze->getNumberBranchesFound() == 0) ||
     425        (BranchInfoAvailable == false) ) {
     426      printf( "No branch information available\n" );
     427    } else {
    427428      printf(
    428429        "Total branches found     : %d\n",
Note: See TracChangeset for help on using the changeset viewer.