We take the API mutex first and the stop mutex second in general, so do it here as well.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@155077 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/API/SBFrame.cpp b/source/API/SBFrame.cpp
index b694418..27c07ef 100644
--- a/source/API/SBFrame.cpp
+++ b/source/API/SBFrame.cpp
@@ -1044,13 +1044,11 @@
 
     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);