diff options
author | Jason Molenda <jmolenda@apple.com> | 2016-08-24 05:25:32 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 2016-08-24 05:25:32 +0000 |
commit | e1cf274bff0eadb8c9da55ec6a9f99efe47025d4 (patch) | |
tree | d0bac93785039f6c33d42bf2974ebd97ed626e40 | |
parent | 4570e26e68e757058ba2562bffcd6b7344ee0b02 (diff) | |
download | bcm5719-llvm-e1cf274bff0eadb8c9da55ec6a9f99efe47025d4.tar.gz bcm5719-llvm-e1cf274bff0eadb8c9da55ec6a9f99efe47025d4.zip |
Add api logging for SBDebugger::SetCurrentPlatformSDKRoot.
<rdar://problem/27857025>
llvm-svn: 279611
-rw-r--r-- | lldb/source/API/SBDebugger.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/API/SBDebugger.cpp b/lldb/source/API/SBDebugger.cpp index cc55230d8b3..9a047085260 100644 --- a/lldb/source/API/SBDebugger.cpp +++ b/lldb/source/API/SBDebugger.cpp @@ -1228,12 +1228,15 @@ SBDebugger::SetCurrentPlatform (const char *platform_name_cstr) bool SBDebugger::SetCurrentPlatformSDKRoot (const char *sysroot) { + Log *log(GetLogIfAllCategoriesSet (LIBLLDB_LOG_API)); if (m_opaque_sp) { PlatformSP platform_sp (m_opaque_sp->GetPlatformList().GetSelectedPlatform()); if (platform_sp) { + if (log && sysroot) + log->Printf ("SBDebugger::SetCurrentPlatformSDKRoot (\"%s\")", sysroot); platform_sp->SetSDKRootDirectory (ConstString (sysroot)); return true; } |