Changeset f381f26 in rtems-tools for tester/covoar/DesiredSymbols.cc


Ignore:
Timestamp:
Jan 19, 2015, 9:56:14 PM (5 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, master
Children:
69c955d
Parents:
3badbb0
Message:

Fix covoar so it builds for Windows.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tester/covoar/DesiredSymbols.cc

    r3badbb0 rf381f26  
    22 *  @brief DesiredSymbols Implementation
    33 *
    4  *  This file contains the implementation of the functions 
     4 *  This file contains the implementation of the functions
    55 *  which provide the functionality of the DesiredSymbols.
    66 */
     
    6565
    6666      // Skip blank lines between symbols
    67       do { 
     67      do {
    6868        inputBuffer[0] = '\0';
    6969        inputBuffer2[0] = '\0';
     
    9393
    9494        // Add this to the set of symbols.
    95         else 
     95        else
    9696          set[ inputBuffer ] = *symInfo;
    9797      }
     
    163163
    164164        // If we are at the start of instruction increment
    165         // instruction type counters as needed. 
     165        // instruction type counters as needed.
    166166        if ( theCoverageMap->isStartOfInstruction( a ) ) {
    167167
     
    181181            sitr->second.stats.branchesExecuted++;
    182182          }
    183  
    184         }
    185  
     183
     184        }
     185
    186186        if (!theCoverageMap->wasExecuted( a )) {
    187187          stats.uncoveredBytes++;
    188188          sitr->second.stats.uncoveredBytes++;
    189         }       
     189        }
    190190        a++;
    191191
     
    252252      a = 0;
    253253      while (a <= endAddress) {
    254        
     254
    255255        // If an address was NOT executed, find consecutive unexecuted
    256256        // addresses and add them to the uncovered ranges.
     
    502502
    503503      // Use only the base filename without directory path.
     504#if WIN32
     505      #define realpath(N,R) _fullpath((R),(N),_MAX_PATH)
     506#endif
    504507      realpath( inputBuffer, rpath );
    505508      base = basename( rpath );
     
    611614    if (set.find( symbolName ) == set.end()) {
    612615      #if 0
    613         fprintf( stderr, 
    614           "Warning: Unable to find symbol %s\n", 
    615           symbolName.c_str() 
     616        fprintf( stderr,
     617          "Warning: Unable to find symbol %s\n",
     618          symbolName.c_str()
    616619        );
    617620      #endif
     
    634637    uint32_t              sMapSize;
    635638    uint32_t              executionCount;
    636    
     639
    637640    // Ensure that the symbol is a desired symbol.
    638641    itr = set.find( symbolName );
Note: See TracChangeset for help on using the changeset viewer.