Changeset ccbc6aa in rtems-testing


Ignore:
Timestamp:
Jan 25, 2011, 8:48:36 PM (8 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
898a5e8
Parents:
851f8cf
Message:

2011-01-25 Joel Sherrill <joel.sherrill@…>

  • ExecutableInfo?.cc: Hack a shot at seeing if symbol is already known. If so, then say it has multiple ranges.
Location:
covoar
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • covoar/ChangeLog

    r851f8cf rccbc6aa  
     12011-01-25      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * ExecutableInfo.cc: Hack a shot at seeing if symbol is already known.
     4        If so, then say it has multiple ranges.
     5
    162011-01-24      Joel Sherrill <joel.sherrilL@OARcorp.com>
    27
  • covoar/ExecutableInfo.cc

    r851f8cf rccbc6aa  
    9191  )
    9292  {
    93     CoverageMapBase* theMap = NULL;
     93    CoverageMapBase* theMap;
    9494
    95     theMap = new CoverageMap( lowAddress, highAddress );
    96 
    97     if (!theMap)
    98       fprintf(
    99         stderr, "Unable to create coverage map for %s\n",
    100         symbolName.c_str()
    101       );
    102 
    103     else
     95    theMap = coverageMaps.find( symbolName );
     96    if ( theMap == std::map.end() ) {
     97      theMap = new CoverageMap( lowAddress, highAddress );
    10498      coverageMaps[ symbolName ] = theMap;
    105 
     99    } else {
     100      theMap->Add( lowAddress, highAddress );
     101    }
    106102    return theMap;
    107103  }
Note: See TracChangeset for help on using the changeset viewer.