[Lldb-commits] [lldb] r279611 - Add api logging for SBDebugger::SetCurrentPlatformSDKRoot.
Jason Molenda via lldb-commits
lldb-commits at lists.llvm.org
Tue Aug 23 22:25:32 PDT 2016
Author: jmolenda
Date: Wed Aug 24 00:25:32 2016
New Revision: 279611
URL: http://llvm.org/viewvc/llvm-project?rev=279611&view=rev
Log:
Add api logging for SBDebugger::SetCurrentPlatformSDKRoot.
<rdar://problem/27857025>
Modified:
lldb/trunk/source/API/SBDebugger.cpp
Modified: lldb/trunk/source/API/SBDebugger.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBDebugger.cpp?rev=279611&r1=279610&r2=279611&view=diff
==============================================================================
--- lldb/trunk/source/API/SBDebugger.cpp (original)
+++ lldb/trunk/source/API/SBDebugger.cpp Wed Aug 24 00:25:32 2016
@@ -1228,12 +1228,15 @@ SBDebugger::SetCurrentPlatform (const ch
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;
}
More information about the lldb-commits
mailing list