Added an SBAPI to get the PythonPath (if the Host knows how to do that). And a -P option to the Driver

to print it out.  Changed dotest.py to use that to find the PythonPath it should use given the lldb binary
it was told to run.

llvm-svn: 170932
This commit is contained in:
Jim Ingham
2012-12-21 22:22:26 +00:00
parent 44c2a2a26e
commit e2231ac783
5 changed files with 90 additions and 26 deletions

View File

@@ -26,6 +26,18 @@ SBHostOS::GetProgramFileSpec ()
return sb_filespec;
}
SBFileSpec
SBHostOS::GetLLDBPythonPath ()
{
SBFileSpec sb_lldb_python_filespec;
FileSpec lldb_python_spec;
if (Host::GetLLDBPath (ePathTypePythonDir, lldb_python_spec))
{
sb_lldb_python_filespec.SetFileSpec (lldb_python_spec);
}
return sb_lldb_python_filespec;
}
lldb::thread_t
SBHostOS::ThreadCreate
(