diff options
| author | Jim Ingham <jingham@apple.com> | 2012-04-19 00:14:53 +0000 |
|---|---|---|
| committer | Jim Ingham <jingham@apple.com> | 2012-04-19 00:14:53 +0000 |
| commit | 1f628f4e8f9fe58b96f84ef55f94887da58ce454 (patch) | |
| tree | 0f78146c6937ea472634e115b77fe767113454ee | |
| parent | d372942d77540ccca7b5c222b3a69da2e37f6498 (diff) | |
| download | bcm5719-llvm-1f628f4e8f9fe58b96f84ef55f94887da58ce454.tar.gz bcm5719-llvm-1f628f4e8f9fe58b96f84ef55f94887da58ce454.zip | |
We take the API mutex first and the stop mutex second in general, so do it here as well.
llvm-svn: 155077
| -rw-r--r-- | lldb/source/API/SBFrame.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lldb/source/API/SBFrame.cpp b/lldb/source/API/SBFrame.cpp index b69441815d7..27c07ef15d5 100644 --- a/lldb/source/API/SBFrame.cpp +++ b/lldb/source/API/SBFrame.cpp @@ -1044,13 +1044,11 @@ SBFrame::EvaluateExpression (const char *expr, lldb::DynamicValueType fetch_dyna if (frame && target) { + Mutex::Locker api_locker (target->GetAPIMutex()); + Process::StopLocker stop_locker; if (stop_locker.TryLock(&exe_ctx.GetProcessPtr()->GetRunLock())) { - - Mutex::Locker api_locker (target->GetAPIMutex()); - - StreamString frame_description; frame->DumpUsingSettingsFormat (&frame_description); |

