|
7 | 7 | //===----------------------------------------------------------------------===// |
8 | 8 |
|
9 | 9 | #include "lldb/API/SBTarget.h" |
10 | | -#include "lldb/Utility/Instrumentation.h" |
11 | | -#include "lldb/Utility/LLDBLog.h" |
12 | | -#include "lldb/lldb-public.h" |
13 | | - |
14 | 10 | #include "Plugins/TypeSystem/Clang/TypeSystemClang.h" |
15 | 11 | #include "lldb/API/SBBreakpoint.h" |
16 | 12 | #include "lldb/API/SBDebugger.h" |
|
21 | 17 | #include "lldb/API/SBListener.h" |
22 | 18 | #include "lldb/API/SBModule.h" |
23 | 19 | #include "lldb/API/SBModuleSpec.h" |
| 20 | +#include "lldb/API/SBMutex.h" |
24 | 21 | #include "lldb/API/SBProcess.h" |
25 | 22 | #include "lldb/API/SBSourceManager.h" |
26 | 23 | #include "lldb/API/SBStream.h" |
|
59 | 56 | #include "lldb/Utility/ArchSpec.h" |
60 | 57 | #include "lldb/Utility/Args.h" |
61 | 58 | #include "lldb/Utility/FileSpec.h" |
| 59 | +#include "lldb/Utility/Instrumentation.h" |
| 60 | +#include "lldb/Utility/LLDBLog.h" |
62 | 61 | #include "lldb/Utility/ProcessInfo.h" |
63 | 62 | #include "lldb/Utility/RegularExpression.h" |
64 | 63 | #include "lldb/ValueObject/ValueObjectConstResult.h" |
65 | 64 | #include "lldb/ValueObject/ValueObjectList.h" |
66 | 65 | #include "lldb/ValueObject/ValueObjectVariable.h" |
| 66 | +#include "lldb/lldb-public.h" |
67 | 67 |
|
68 | 68 | #include "Commands/CommandObjectBreakpoint.h" |
69 | 69 | #include "lldb/Interpreter/CommandReturnObject.h" |
@@ -2497,3 +2497,11 @@ lldb::SBTrace SBTarget::CreateTrace(lldb::SBError &error) { |
2497 | 2497 | } |
2498 | 2498 | return SBTrace(); |
2499 | 2499 | } |
| 2500 | + |
| 2501 | +lldb::SBMutex SBTarget::GetAPIMutex() const { |
| 2502 | + LLDB_INSTRUMENT_VA(this); |
| 2503 | + |
| 2504 | + if (TargetSP target_sp = GetSP()) |
| 2505 | + return lldb::SBMutex(target_sp); |
| 2506 | + return lldb::SBMutex(); |
| 2507 | +} |
0 commit comments