From a83b6cf2446ebba78ec38564b7021da08187ed4b Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Fri, 24 Aug 2012 02:01:39 +0000 Subject: We have a partially working OS plug-in through python! llvm-svn: 162532 --- .../Plugins/OperatingSystem/Python/OperatingSystemPython.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp') diff --git a/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp b/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp index dc6665fd1bf..c798449aa74 100644 --- a/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp +++ b/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp @@ -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 -- cgit v1.2.3