The OS plug-in can now get data from a python script that implements the protocol.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@162540 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Interpreter/PythonDataObjects.cpp b/source/Interpreter/PythonDataObjects.cpp
index c41772c..6d345d7 100644
--- a/source/Interpreter/PythonDataObjects.cpp
+++ b/source/Interpreter/PythonDataObjects.cpp
@@ -123,13 +123,21 @@
 }
 
 const char*
-PythonDataString::GetString()
+PythonDataString::GetString() const
 {
     if (m_object)
         return PyString_AsString(GetPythonObject());
     return NULL;
 }
 
+size_t
+PythonDataString::GetSize() const
+{
+    if (m_object)
+        return PyString_Size(GetPythonObject());
+    return 0;
+}
+
 void
 PythonDataString::SetString (const char* string)
 {
diff --git a/source/Interpreter/ScriptInterpreterPython.cpp b/source/Interpreter/ScriptInterpreterPython.cpp
index 2c40627..97cf7f8 100644
--- a/source/Interpreter/ScriptInterpreterPython.cpp
+++ b/source/Interpreter/ScriptInterpreterPython.cpp
@@ -1845,8 +1845,8 @@
 }
 
 lldb::ScriptInterpreterObjectSP
-ScriptInterpreterPython::OSPlugin_QueryForThreadInfo (lldb::ScriptInterpreterObjectSP object,
-                                                      lldb::tid_t thread_id)
+ScriptInterpreterPython::OSPlugin_QueryForRegisterContextData (lldb::ScriptInterpreterObjectSP object,
+                                                               lldb::tid_t thread_id)
 {
     Locker py_lock(this,Locker::AcquireLock,Locker::FreeLock);