forked from OSchip/llvm-project
parent
1e1a1dedc6
commit
c44306f7f3
|
@ -40,6 +40,7 @@ USEDLIBS = lldbAPI.a \
|
||||||
lldbPluginObjectContainerBSDArchive.a \
|
lldbPluginObjectContainerBSDArchive.a \
|
||||||
lldbPluginObjectFileELF.a \
|
lldbPluginObjectFileELF.a \
|
||||||
lldbPluginObjectFilePECOFF.a \
|
lldbPluginObjectFilePECOFF.a \
|
||||||
|
lldbPluginOperatingSystemPython.a \
|
||||||
lldbPluginPlatformGDBServer.a \
|
lldbPluginPlatformGDBServer.a \
|
||||||
lldbPluginProcessGDBRemote.a \
|
lldbPluginProcessGDBRemote.a \
|
||||||
lldbPluginSymbolFileDWARF.a \
|
lldbPluginSymbolFileDWARF.a \
|
||||||
|
|
|
@ -214,12 +214,12 @@ OperatingSystemPython::CreateRegisterContextForThread (Thread *thread)
|
||||||
{
|
{
|
||||||
RegisterContextSP reg_ctx_sp;
|
RegisterContextSP reg_ctx_sp;
|
||||||
if (!m_interpreter || !m_python_object || !thread)
|
if (!m_interpreter || !m_python_object || !thread)
|
||||||
return NULL;
|
return RegisterContextSP();
|
||||||
auto object_sp = m_interpreter->OSPlugin_QueryForRegisterContextData (m_interpreter->MakeScriptObject(m_python_object),
|
auto object_sp = m_interpreter->OSPlugin_QueryForRegisterContextData (m_interpreter->MakeScriptObject(m_python_object),
|
||||||
thread->GetID());
|
thread->GetID());
|
||||||
|
|
||||||
if (!object_sp)
|
if (!object_sp)
|
||||||
return NULL;
|
return RegisterContextSP();
|
||||||
|
|
||||||
PythonDataString reg_context_data((PyObject*)object_sp->GetObject());
|
PythonDataString reg_context_data((PyObject*)object_sp->GetObject());
|
||||||
if (reg_context_data)
|
if (reg_context_data)
|
||||||
|
|
Loading…
Reference in New Issue