Add api logging for SBDebugger::SetCurrentPlatformSDKRoot.

<rdar://problem/27857025> 

llvm-svn: 279611
This commit is contained in:
Jason Molenda 2016-08-24 05:25:32 +00:00
parent 4570e26e68
commit e1cf274bff
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}