From 283e6fd072af85d5f2edab3cb98f2a94b1701a93 Mon Sep 17 00:00:00 2001 From: Ryan Long Date: Tue, 27 Jul 2021 17:16:14 -0400 Subject: Remove dynamicLibrary global variable - Replaced dynamicLibrary in app_common with local variables - Changed data type to string - Changed conditionals to reflect this --- tester/covoar/TraceConverter.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tester/covoar/TraceConverter.cc') 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 ) ); -- cgit v1.2.3