summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2012-08-24 02:01:39 +0000
committerGreg Clayton <gclayton@apple.com>2012-08-24 02:01:39 +0000
commita83b6cf2446ebba78ec38564b7021da08187ed4b (patch)
tree755778b3dd2c24f58f2afdbedc9f0337ed5c340b /lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp
parentb710b8db3d911f5c7899dcb6dd9ca249d44b8455 (diff)
downloadbcm5719-llvm-a83b6cf2446ebba78ec38564b7021da08187ed4b.tar.gz
bcm5719-llvm-a83b6cf2446ebba78ec38564b7021da08187ed4b.zip
We have a partially working OS plug-in through python!
llvm-svn: 162532
Diffstat (limited to 'lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp')
-rw-r--r--lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp8
1 files changed, 4 insertions, 4 deletions
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
OpenPOWER on IntegriCloud