Changeset 99c90b3 in rtems-tools for tester/covoar/covoar.cc


Ignore:
Timestamp:
Aug 5, 2018, 11:41:08 PM (16 months ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
317d85d
Parents:
f450227
git-author:
Chris Johns <chrisj@…> (08/05/18 23:41:08)
git-committer:
Chris Johns <chrisj@…> (08/06/18 23:11:29)
Message:

tester/covoar: Integrate DWARF function data.

Use DAWRF function data to create the executable coverage
maps. Integrate the existing objdump processing with this
data.

  • Refactor CoverageMapBase? to have the address ranges and address info as separate objects. Move the to address info into a vector. Add support for multiple address ranges.
  • DesiredSymbols? is only interested in function symbols.
  • ExecutableInfo? creates coverage maps from DWARF function data.
  • Add warning flags to the covoar build.
  • Varous C++11 refactoring.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tester/covoar/covoar.cc

    rf450227 r99c90b3  
    248248        if (dynamicLibrary) {
    249249          executableInfo = new Coverage::ExecutableInfo(
    250             singleExecutable, dynamicLibrary
     250            singleExecutable, dynamicLibrary, Verbose
    251251          );
    252252        } else {
    253           executableInfo = new Coverage::ExecutableInfo( singleExecutable );
     253          executableInfo = new Coverage::ExecutableInfo(
     254            singleExecutable, nullptr, Verbose
     255          );
    254256        }
    255257
     
    273275                    << std::endl;
    274276        } else {
    275           executableInfo = new Coverage::ExecutableInfo( argv[i] );
     277          executableInfo = new Coverage::ExecutableInfo(
     278            argv[i], nullptr, Verbose
     279          );
    276280          executablesToAnalyze.push_back( executableInfo );
    277281          coverageFileNames.push_back( coverageFileName );
     
    574578  catch (std::exception e)
    575579  {
    576     int   status;
    577     char* realname;
    578     realname = abi::__cxa_demangle (e.what(), 0, 0, &status);
    579     std::cerr << "error: exception: " << realname << " [";
    580     ::free (realname);
    581     const std::type_info &ti = typeid (e);
    582     realname = abi::__cxa_demangle (ti.name(), 0, 0, &status);
    583     std::cerr << realname << "] " << e.what () << std::endl << std::flush;
    584     ::free (realname);
     580    rld::output_std_exception(e, std::cerr);
    585581    ec = 11;
    586582  }
Note: See TracChangeset for help on using the changeset viewer.