summaryrefslogtreecommitdiffstats
path: root/tester/covoar/TraceConverter.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tester/covoar/TraceConverter.cc')
-rw-r--r--tester/covoar/TraceConverter.cc5
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 )
);