diff options
Diffstat (limited to 'lldb/source/API/SBFunction.cpp')
-rw-r--r-- | lldb/source/API/SBFunction.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/API/SBFunction.cpp b/lldb/source/API/SBFunction.cpp index 54081b55ac3..853a6ffd4f2 100644 --- a/lldb/source/API/SBFunction.cpp +++ b/lldb/source/API/SBFunction.cpp @@ -125,9 +125,11 @@ SBFunction::GetInstructions (SBTarget target) SBInstructionList sb_instructions; if (m_opaque_ptr) { + Mutex::Locker api_locker; ExecutionContext exe_ctx; if (target.IsValid()) { + api_locker.Reset (target->GetAPIMutex().GetMutex()); target->CalculateExecutionContext (exe_ctx); exe_ctx.process = target->GetProcessSP().get(); } |