summaryrefslogtreecommitdiffstats
path: root/tester/covoar/ExecutableInfo.cc
diff options
context:
space:
mode:
authorRyan Long <ryan.long@oarcorp.com>2021-07-27 17:16:14 -0400
committerJoel Sherrill <joel@rtems.org>2021-08-03 15:56:53 -0500
commit283e6fd072af85d5f2edab3cb98f2a94b1701a93 (patch)
treee09f1c5cc40fcaadafede09961d3b2711792c503 /tester/covoar/ExecutableInfo.cc
parentRemove Verbose global variable (diff)
downloadrtems-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/ExecutableInfo.cc')
-rw-r--r--tester/covoar/ExecutableInfo.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/tester/covoar/ExecutableInfo.cc b/tester/covoar/ExecutableInfo.cc
index a6184e7..9c3031e 100644
--- a/tester/covoar/ExecutableInfo.cc
+++ b/tester/covoar/ExecutableInfo.cc
@@ -18,18 +18,18 @@
namespace Coverage {
ExecutableInfo::ExecutableInfo(
- const char* const theExecutableName,
- const char* const theLibraryName,
- bool verbose
+ const char* const theExecutableName,
+ const std::string& theLibraryName,
+ bool verbose
) : fileName(theExecutableName),
loadAddress(0)
{
- if (theLibraryName != nullptr)
+ if ( !theLibraryName.empty() )
libraryName = theLibraryName;
if (verbose) {
std::cerr << "Loading executable " << theExecutableName;
- if (theLibraryName != nullptr)
+ if ( !theLibraryName.empty() )
std::cerr << " (" << theLibraryName << ')';
std::cerr << std::endl;
}