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:
Jim Ingham 2012-04-13 23:29:44 +00:00
parent 99ff2c42f6
commit d846f1f2b1
1 changed files with 2 additions and 5 deletions

View File

@ -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();