Changeset 9c33a49 in rtems-testing


Ignore:
Timestamp:
May 12, 2010, 3:46:10 PM (9 years ago)
Author:
Glenn Humphrey <glenn.humphrey@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
d0f1005
Parents:
b23d1ad
Message:

2010-05-12 Glenn Humphrey

Location:
rtems-coverage
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • rtems-coverage/ChangeLog

    rb23d1ad r9c33a49  
     12010-05-12      Glenn Humphrey
     2
     3        * ObjdumpProcessor.cc: Simplified the finalizeSymbol function.
     4
    152010-05-12      Joel Sherrill <joel.sherrilL@OARcorp.com>
    26
  • rtems-coverage/ObjdumpProcessor.cc

    rb23d1ad r9c33a49  
    3232    uint32_t                         lowAddress,
    3333    uint32_t                         highAddress,
    34     ObjdumpProcessor::objdumpLines_t instructions,
    35     SymbolInformation*               symbolInfo
     34    ObjdumpProcessor::objdumpLines_t instructions
    3635  ) {
    3736
     
    4039    ObjdumpProcessor::objdumpLines_t::iterator         itr, fnop, lnop;
    4140    ObjdumpProcessor::objdumpLines_t::reverse_iterator ritr;
     41    SymbolInformation*                                 symbolInfo = NULL;
    4242    SymbolTable*                                       theSymbolTable;
    4343
     
    8383
    8484    // If there are NOT already saved instructions, save them.
     85    symbolInfo = SymbolsToAnalyze->find( symbolName );
    8586    if (symbolInfo->instructions.empty()) {
    8687      symbolInfo->sourceFile = executableInfo->getFileName();
     
    282283    bool               processSymbol = false;
    283284    char               symbol[ 100 ];
    284     SymbolInformation* symbolInformation = NULL;
    285285    char               terminator1;
    286286    char               terminator2;
     
    298298
    299299        // If we are currently processing a symbol, finalize it.
    300         if ((processSymbol) && (symbolInformation)) {
     300        if (processSymbol) {
    301301          finalizeSymbol(
    302302            executableInformation,
     
    304304            baseAddress,
    305305            address,  // XXX fix to determine correct end address
    306             theInstructions,
    307             symbolInformation
     306            theInstructions
    308307          );
    309308          fprintf(
     
    340339
    341340        // If we are currently processing a symbol, finalize it.
    342         if ((processSymbol) && (symbolInformation)) {
     341        if (processSymbol) {
    343342          finalizeSymbol(
    344343            executableInformation,
     
    346345            baseAddress,
    347346            address - 1,
    348             theInstructions,
    349             symbolInformation
     347            theInstructions
    350348          );
    351349        }
     
    358356
    359357        // See if the new symbol is one that we care about.
    360         symbolInformation = SymbolsToAnalyze->find( symbol );
    361 
    362         if (symbolInformation) {
     358        if (SymbolsToAnalyze->isDesired( symbol )) {
    363359          baseAddress = address;
    364360          currentSymbol = symbol;
Note: See TracChangeset for help on using the changeset viewer.