summaryrefslogtreecommitdiffstats
path: root/tester/covoar/DesiredSymbols.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/DesiredSymbols.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/DesiredSymbols.h')
-rw-r--r--tester/covoar/DesiredSymbols.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/tester/covoar/DesiredSymbols.h b/tester/covoar/DesiredSymbols.h
index 791b4ea..7ea3a9a 100644
--- a/tester/covoar/DesiredSymbols.h
+++ b/tester/covoar/DesiredSymbols.h
@@ -19,6 +19,10 @@
namespace Coverage {
+ class ObjdumpProcessor;
+ struct objdumpLine_t;
+ class ExecutableInfo;
+
/*!
*
@@ -139,7 +143,7 @@ namespace Coverage {
/*!
* This member contains the disassembly associated with a symbol.
*/
- std::list<ObjdumpProcessor::objdumpLine_t> instructions;
+ std::list<objdumpLine_t> instructions;
/*!
* This member contains the executable that was used to
@@ -263,8 +267,12 @@ namespace Coverage {
* uncovered ranges or branches.
*
* @param[in] verbose specifies whether to be verbose with output
+ * @param[in] symbolsToAnalyze the symbols to be analyzed
*/
- void findSourceForUncovered( bool verbose );
+ void findSourceForUncovered(
+ bool verbose,
+ const DesiredSymbols& symbolsToAnalyze
+ );
/*!
* This method returns the total number of branches always taken
@@ -398,8 +406,10 @@ namespace Coverage {
/*!
* This method preprocesses each symbol's coverage map to mark nop
* and branch information.
+ *
+ * @param[in] symbolsToAnalyze the symbols to be analyzed
*/
- void preprocess( void );
+ void preprocess( const DesiredSymbols& symbolsToAnalyze );
private: