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/TraceConverter.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/TraceConverter.cc')
-rw-r--r-- | tester/covoar/TraceConverter.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tester/covoar/TraceConverter.cc b/tester/covoar/TraceConverter.cc index 89e0736..c997702 100644 --- a/tester/covoar/TraceConverter.cc +++ b/tester/covoar/TraceConverter.cc @@ -91,6 +91,7 @@ int main( rld::process::tempfile err( ".err" ); Coverage::ObjdumpProcessor objdumpProcessor; bool verbose = false; + std::string dynamicLibrary; setup_signals(); @@ -130,13 +131,13 @@ int main( // Create toolnames. TargetInfo = Target::TargetFactory( cpuname ); - if (dynamicLibrary) + if ( !dynamicLibrary.empty() ) executableInfo = new Coverage::ExecutableInfo( executable, dynamicLibrary ); else executableInfo = new Coverage::ExecutableInfo( executable ); // If a dynamic library was specified, determine the load address. - if (dynamicLibrary) + if ( !dynamicLibrary.empty() ) executableInfo->setLoadAddress( objdumpProcessor.determineLoadAddress( executableInfo ) ); |