Fixes by Daniel Malea.

llvm-svn: 162756
This commit is contained in:
Filipe Cabecinhas 2012-08-28 13:59:38 +00:00
parent 1e1a1dedc6
commit c44306f7f3
2 changed files with 3 additions and 2 deletions

View File

@ -40,6 +40,7 @@ USEDLIBS = lldbAPI.a \
lldbPluginObjectContainerBSDArchive.a \
lldbPluginObjectFileELF.a \
lldbPluginObjectFilePECOFF.a \
lldbPluginOperatingSystemPython.a \
lldbPluginPlatformGDBServer.a \
lldbPluginProcessGDBRemote.a \
lldbPluginSymbolFileDWARF.a \

View File

@ -214,12 +214,12 @@ OperatingSystemPython::CreateRegisterContextForThread (Thread *thread)
{
RegisterContextSP reg_ctx_sp;
if (!m_interpreter || !m_python_object || !thread)
return NULL;
return RegisterContextSP();
auto object_sp = m_interpreter->OSPlugin_QueryForRegisterContextData (m_interpreter->MakeScriptObject(m_python_object),
thread->GetID());
if (!object_sp)
return NULL;
return RegisterContextSP();
PythonDataString reg_context_data((PyObject*)object_sp->GetObject());
if (reg_context_data)