summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Platform/MacOSX/PlatformAppleWatchSimulator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Plugins/Platform/MacOSX/PlatformAppleWatchSimulator.cpp')
-rw-r--r--lldb/source/Plugins/Platform/MacOSX/PlatformAppleWatchSimulator.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformAppleWatchSimulator.cpp b/lldb/source/Plugins/Platform/MacOSX/PlatformAppleWatchSimulator.cpp
index 03bfb5fbbe2..ea8e789b292 100644
--- a/lldb/source/Plugins/Platform/MacOSX/PlatformAppleWatchSimulator.cpp
+++ b/lldb/source/Plugins/Platform/MacOSX/PlatformAppleWatchSimulator.cpp
@@ -16,6 +16,7 @@
#include "lldb/Breakpoint/BreakpointLocation.h"
#include "lldb/Core/ArchSpec.h"
#include "lldb/Core/Error.h"
+#include "lldb/Core/Log.h"
#include "lldb/Core/Module.h"
#include "lldb/Core/ModuleList.h"
#include "lldb/Core/ModuleSpec.h"
@@ -68,6 +69,20 @@ PlatformAppleWatchSimulator::Terminate ()
PlatformSP
PlatformAppleWatchSimulator::CreateInstance (bool force, const ArchSpec *arch)
{
+ Log *log(GetLogIfAllCategoriesSet (LIBLLDB_LOG_PLATFORM));
+ if (log)
+ {
+ const char *arch_name;
+ if (arch && arch->GetArchitectureName ())
+ arch_name = arch->GetArchitectureName ();
+ else
+ arch_name = "<null>";
+
+ const char *triple_cstr = arch ? arch->GetTriple ().getTriple ().c_str() : "<null>";
+
+ log->Printf ("PlatformAppleWatchSimulator::%s(force=%s, arch={%s,%s})", __FUNCTION__, force ? "true" : "false", arch_name, triple_cstr);
+ }
+
bool create = force;
if (create == false && arch && arch->IsValid())
{
@@ -121,7 +136,16 @@ PlatformAppleWatchSimulator::CreateInstance (bool force, const ArchSpec *arch)
}
}
if (create)
+ {
+ if (log)
+ log->Printf ("PlatformAppleWatchSimulator::%s() creating platform", __FUNCTION__);
+
return PlatformSP(new PlatformAppleWatchSimulator ());
+ }
+
+ if (log)
+ log->Printf ("PlatformAppleWatchSimulator::%s() aborting creation of platform", __FUNCTION__);
+
return PlatformSP();
}
OpenPOWER on IntegriCloud