mirror of
https://github.com/intel/llvm.git
synced 2026-01-15 12:25:46 +08:00
The LLDB API (lldb::SB*) is now thread safe!
llvm-svn: 122262
This commit is contained in:
@@ -120,9 +120,13 @@ SBSymbol::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);
|
||||
}
|
||||
const AddressRange *symbol_range = m_opaque_ptr->GetAddressRangePtr();
|
||||
if (symbol_range)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user