summaryrefslogtreecommitdiffstats
path: root/tester/covoar/GcovData.h
diff options
context:
space:
mode:
authorRyan Long <ryan.long@oarcorp.com>2021-07-28 13:20:34 -0400
committerJoel Sherrill <joel@rtems.org>2021-08-03 15:56:53 -0500
commita1d0e5515e0eb706cb530ce1b9f285a6b8afc821 (patch)
treed68dc65b150978ba1a3ce20a9692953ad0c861d3 /tester/covoar/GcovData.h
parentRemove input buffer global variables (diff)
downloadrtems-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.h')
-rw-r--r--tester/covoar/GcovData.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/tester/covoar/GcovData.h b/tester/covoar/GcovData.h
index 0e74b02..b00b27a 100644
--- a/tester/covoar/GcovData.h
+++ b/tester/covoar/GcovData.h
@@ -11,6 +11,7 @@
#include <list>
#include <iostream>
#include "GcovFunctionData.h"
+#include "DesiredSymbols.h"
namespace Gcov {
@@ -56,6 +57,8 @@ struct gcov_statistics
uint64_t sumMax; // sum of individual runs max values
};
+class DesiredSymbols;
+
/*! @class GcovData
*
* This is the specification of the GcovData class.
@@ -66,8 +69,10 @@ struct gcov_statistics
/*!
* This method constructs a GcnoReader instance.
+ *
+ * @param[in] symbolsToAnalyze the symbols to be analyzed
*/
- GcovData();
+ GcovData( Coverage::DesiredSymbols& symbolsToAnalyze );
/*!
* This method destructs a GcnoReader instance.
@@ -194,6 +199,11 @@ struct gcov_statistics
* to a specified report file
*/
void printGcnoFileInfo( FILE * textFile );
+
+ /*!
+ * This member variable contains the symbols to be analyzed
+ */
+ Coverage::DesiredSymbols& symbolsToAnalyze_m;
};
}
#endif