diff options
author | Ryan Long <ryan.long@oarcorp.com> | 2021-07-28 13:20:34 -0400 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2021-08-03 15:56:53 -0500 |
commit | a1d0e5515e0eb706cb530ce1b9f285a6b8afc821 (patch) | |
tree | d68dc65b150978ba1a3ce20a9692953ad0c861d3 /tester/covoar/GcovData.cc | |
parent | Remove input buffer global variables (diff) | |
download | rtems-tools-a1d0e5515e0eb706cb530ce1b9f285a6b8afc821.tar.bz2 |
Remove SymbolsToAnalyze global variable
- Removed SymbolsToAnalyze from app_common and replaced it with the
symbolsToAnalyze_m member variable in DesiredSymbols, GcovData, and
ObjdumpProcessor
- Added a parameter to constructors to initialize symbolsToAnalyze_m
- Moved the definition of objdumpLine_t out of ObjdumpProcessor to make
it work with DesiredSymbols
Diffstat (limited to 'tester/covoar/GcovData.cc')
-rw-r--r-- | tester/covoar/GcovData.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tester/covoar/GcovData.cc b/tester/covoar/GcovData.cc index e8b8573..11c26ce 100644 --- a/tester/covoar/GcovData.cc +++ b/tester/covoar/GcovData.cc @@ -25,9 +25,10 @@ namespace Gcov { - GcovData::GcovData() + GcovData::GcovData( Coverage::DesiredSymbols& symbolsToAnalyze ): + numberOfFunctions( 0 ), + symbolsToAnalyze_m( symbolsToAnalyze ) { - numberOfFunctions = 0; } GcovData::~GcovData() @@ -416,7 +417,7 @@ namespace Gcov { function->setChecksum( intBuffer[1] ); header.length -= readString( buffer, gcovFile ); - function->setFunctionName( buffer ); + function->setFunctionName( buffer, symbolsToAnalyze_m ); header.length -= readString( buffer, gcovFile ); function->setFileName( buffer ); status = fread( &intBuffer, 4, header.length, gcovFile ); |