mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 05:32:28 +08:00
Now that we have dynamic values, we need to protect the GetChildAtIndex()
calls with the target API mutex. llvm-svn: 131762
This commit is contained in:
@@ -348,6 +348,9 @@ SBValue::GetChildAtIndex (uint32_t idx, lldb::DynamicValueType use_dynamic)
|
||||
{
|
||||
lldb::ValueObjectSP child_sp;
|
||||
|
||||
if (m_opaque_sp->GetUpdatePoint().GetTarget())
|
||||
Mutex::Locker api_locker (m_opaque_sp->GetUpdatePoint().GetTarget()->GetAPIMutex());
|
||||
|
||||
if (m_opaque_sp)
|
||||
{
|
||||
child_sp = m_opaque_sp->GetChildAtIndex (idx, true);
|
||||
@@ -401,6 +404,10 @@ SBValue::GetChildMemberWithName (const char *name, lldb::DynamicValueType use_dy
|
||||
lldb::ValueObjectSP child_sp;
|
||||
const ConstString str_name (name);
|
||||
|
||||
if (m_opaque_sp->GetUpdatePoint().GetTarget())
|
||||
Mutex::Locker api_locker (m_opaque_sp->GetUpdatePoint().GetTarget()->GetAPIMutex());
|
||||
|
||||
|
||||
if (m_opaque_sp)
|
||||
{
|
||||
child_sp = m_opaque_sp->GetChildMemberWithName (str_name, true);
|
||||
|
||||
Reference in New Issue
Block a user