The API lock was getting dropped too soon in GetVariables. GetValueObjectForFrameVariable could run the target (to get dynamic values) and that requires the target lock.
llvm-svn: 154711
This commit is contained in:
parent
99ff2c42f6
commit
d846f1f2b1
|
@ -883,11 +883,8 @@ SBFrame::GetVariables (bool arguments,
|
|||
|
||||
size_t i;
|
||||
VariableList *variable_list = NULL;
|
||||
// Scope for locker
|
||||
{
|
||||
Mutex::Locker api_locker (target->GetAPIMutex());
|
||||
variable_list = frame->GetVariableList(true);
|
||||
}
|
||||
Mutex::Locker api_locker (target->GetAPIMutex());
|
||||
variable_list = frame->GetVariableList(true);
|
||||
if (variable_list)
|
||||
{
|
||||
const size_t num_variables = variable_list->GetSize();
|
||||
|
|
Loading…
Reference in New Issue