Changeset 93eecc2 in rtems-testing


Ignore:
Timestamp:
Apr 24, 2010, 3:34:00 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
b9077c6
Parents:
8c62b8d
Message:

2010-04-24 Joel Sherrill <joel.sherrilL@…>

  • CoverageReaderQEMU.cc, SymbolTable?.cc, covoar.cc: Investigate why no branch information.
Location:
rtems-coverage
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • rtems-coverage/ChangeLog

    r8c62b8d r93eecc2  
     12010-04-24      Joel Sherrill <joel.sherrilL@OARcorp.com>
     2
     3        * CoverageReaderQEMU.cc, SymbolTable.cc, covoar.cc: Investigate why no
     4        branch information.
     5
    162010-04-23      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • rtems-coverage/CoverageReaderQEMU.cc

    r8c62b8d r93eecc2  
    119119      if (num_entries == 0)
    120120        break;
    121       #if 0
    122         fprintf( stderr, "0x%08x %d 0x%2x\n", entry.pc, entry.size, entry.op );
    123       #endif
    124121
    125122      for (int count=0; count<num_entries; count++) {
     
    134131          continue;
    135132
     133        #if 0
     134          fprintf( stderr, "0x%08x %d 0x%2x \n", entry->pc, entry->size, entry->op );
     135        #endif
    136136        if (entry->op & TRACE_OP_BLOCK) {
    137137         for (i=0; i<entry->size; i++) {
     
    141141
    142142        // Determine if additional branch information is available. */
    143         if (entry->op & 0x0f) {
    144 
    145           if (entry->op & TRACE_OP_TAKEN)
    146             aCoverageMap->setWasTaken( entry->pc + entry->size - 1);
    147 
    148           else if (entry->op & TRACE_OP_NOT_TAKEN)
    149             aCoverageMap->setWasNotTaken( entry->pc + entry->size -1 );
     143        if (entry->op & TRACE_OP_TAKEN) {
     144          aCoverageMap->setWasTaken( entry->pc + entry->size - 1);
     145          #if 0
     146            fprintf( stderr, "0x%08x %d 0x%2x TAKEN\n", entry->pc, entry->size, entry->op );
     147          #endif
     148        } else if (entry->op & TRACE_OP_NOT_TAKEN) {
     149          aCoverageMap->setWasNotTaken( entry->pc + entry->size -1 );
     150          #if 0
     151            fprintf( stderr, "0x%08x %d 0x%2x NOT TAKEN\n", entry->pc, entry->size, entry->op );
     152          #endif
    150153        }
    151154      }
  • rtems-coverage/SymbolTable.cc

    r8c62b8d r93eecc2  
    5757  {
    5858    contents_t::iterator it = contents.end();
     59
     60    if ( contents.size() == 0 )
     61      return "";
    5962
    6063    it--;
  • rtems-coverage/covoar.cc

    r8c62b8d r93eecc2  
    374374    );
    375375    if (SymbolsToAnalyze->getNumberBranchesFound() == 0)
    376       printf( "No branch information found\n" );
     376      printf( "MAIN No branch information found\n" );
    377377    else {
    378378      printf(
Note: See TracChangeset for help on using the changeset viewer.