diff options
author | Ryan Long <ryan.long@oarcorp.com> | 2021-07-27 17:16:14 -0400 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2021-08-03 15:56:53 -0500 |
commit | 283e6fd072af85d5f2edab3cb98f2a94b1701a93 (patch) | |
tree | e09f1c5cc40fcaadafede09961d3b2711792c503 /tester/covoar/covoar.cc | |
parent | Remove Verbose global variable (diff) | |
download | rtems-tools-283e6fd072af85d5f2edab3cb98f2a94b1701a93.tar.bz2 |
Remove dynamicLibrary global variable
- Replaced dynamicLibrary in app_common with local variables
- Changed data type to string
- Changed conditionals to reflect this
Diffstat (limited to 'tester/covoar/covoar.cc')
-rw-r--r-- | tester/covoar/covoar.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tester/covoar/covoar.cc b/tester/covoar/covoar.cc index 9c88b00..3894867 100644 --- a/tester/covoar/covoar.cc +++ b/tester/covoar/covoar.cc @@ -177,6 +177,7 @@ int covoar( Coverage::Explanations allExplanations; Coverage::ObjdumpProcessor objdumpProcessor; bool verbose = false; + std::string dynamicLibrary; // // Process command line options. @@ -303,13 +304,13 @@ int covoar( // If there was at least one coverage file, create the // executable information. if (!coverageFileNames.empty()) { - if (dynamicLibrary) { + if ( !dynamicLibrary.empty() ) { executableInfo = new Coverage::ExecutableInfo( singleExecutable, dynamicLibrary, verbose ); } else { executableInfo = new Coverage::ExecutableInfo( - singleExecutable, nullptr, verbose + singleExecutable, "", verbose ); } @@ -333,7 +334,7 @@ int covoar( << std::endl; } else { executableInfo = new Coverage::ExecutableInfo( - argv[i], nullptr, verbose + argv[i], "", verbose ); executablesToAnalyze.push_back( executableInfo ); coverageFileNames.push_back( coverageFileName ); @@ -373,7 +374,7 @@ int covoar( << std::endl; // If a dynamic library was specified, determine the load address. - if (dynamicLibrary) { + if ( !dynamicLibrary.empty() ) { exe->setLoadAddress( objdumpProcessor.determineLoadAddress( exe ) ); } |