From 3942dc6ee823c30eabbacaac2557aa7778261096 Mon Sep 17 00:00:00 2001 From: Adam Potolsky Date: Thu, 11 Jun 2015 10:00:45 -0700 Subject: [PATCH] Added stub code for linux/mac builds to match the functional ARCH code for discovering libraris in use #4793 --- src/lib/arch/unix/ArchSystemUnix.cpp | 6 ++++++ src/lib/arch/unix/ArchSystemUnix.h | 2 ++ src/lib/plugin/ns/ns.cpp | 4 ++-- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/lib/arch/unix/ArchSystemUnix.cpp b/src/lib/arch/unix/ArchSystemUnix.cpp index 9e554662..112e15cb 100644 --- a/src/lib/arch/unix/ArchSystemUnix.cpp +++ b/src/lib/arch/unix/ArchSystemUnix.cpp @@ -74,3 +74,9 @@ void ArchSystemUnix::setting(const std::string&, const std::string&) const { } + +std::string +ArchSystemUnix::getLibsUsed(void) const +{ + return "not implmented.\nuse lsof on shell"; +} diff --git a/src/lib/arch/unix/ArchSystemUnix.h b/src/lib/arch/unix/ArchSystemUnix.h index b9f3705f..acacaa98 100644 --- a/src/lib/arch/unix/ArchSystemUnix.h +++ b/src/lib/arch/unix/ArchSystemUnix.h @@ -33,4 +33,6 @@ public: virtual std::string getPlatformName() const; virtual std::string setting(const std::string&) const; virtual void setting(const std::string&, const std::string&) const; + virtual std::string getLibsUsed(void) const; + }; diff --git a/src/lib/plugin/ns/ns.cpp b/src/lib/plugin/ns/ns.cpp index 114023c5..fd688787 100644 --- a/src/lib/plugin/ns/ns.cpp +++ b/src/lib/plugin/ns/ns.cpp @@ -59,7 +59,7 @@ init(void* log, void* arch) Arch::setInstance(reinterpret_cast(arch)); } - LOG(( CLOG_DEBUG "%s",helperGetLibsUsed().c_str())); + LOG(( CLOG_DEBUG "library use: %s",helperGetLibsUsed().c_str())); } int @@ -124,4 +124,4 @@ cleanup() } } -} \ No newline at end of file +}