We have a partially working OS plug-in through python!

llvm-svn: 162532
This commit is contained in:
Greg Clayton
2012-08-24 02:01:39 +00:00
parent b710b8db3d
commit a83b6cf244
3 changed files with 20 additions and 12 deletions

View File

@@ -95,7 +95,7 @@ OperatingSystemPython::OperatingSystemPython (lldb_private::Process *process) :
{
m_python_object = object_sp->GetObject();
// GetDynamicRegisterInfo (); // Only for testing should this be done here
//GetDynamicRegisterInfo (); // COMMENT THIS LINE OUT PRIOR TO CHECKIN!!!
}
}
}
@@ -156,9 +156,9 @@ OperatingSystemPython::UpdateThreadList (ThreadList &old_thread_list, ThreadList
auto object_sp = m_interpreter->OSPlugin_QueryForThreadsInfo(m_interpreter->MakeScriptObject(m_python_object));
if (!object_sp)
return NULL;
PythonDataObject dictionary_data_obj((PyObject*)object_sp->GetObject());
PythonDataDictionary dictionary = dictionary_data_obj.GetDictionaryObject();
if(!dictionary)
PythonDataObject pyobj((PyObject*)object_sp->GetObject());
PythonDataArray array = pyobj.GetArrayObject();
if(!array)
return NULL;
// TODO: read from the dict