From e1cf274bff0eadb8c9da55ec6a9f99efe47025d4 Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Wed, 24 Aug 2016 05:25:32 +0000 Subject: [PATCH] Add api logging for SBDebugger::SetCurrentPlatformSDKRoot. llvm-svn: 279611 --- lldb/source/API/SBDebugger.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lldb/source/API/SBDebugger.cpp b/lldb/source/API/SBDebugger.cpp index cc55230..9a04708 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; } -- 2.7.4