|
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 "lldb/API/SBBreakpoint.h" |
15 | 11 | #include "lldb/API/SBDebugger.h" |
16 | 12 | #include "lldb/API/SBEnvironment.h" |
|
20 | 16 | #include "lldb/API/SBListener.h" |
21 | 17 | #include "lldb/API/SBModule.h" |
22 | 18 | #include "lldb/API/SBModuleSpec.h" |
| 19 | +#include "lldb/API/SBMutex.h" |
23 | 20 | #include "lldb/API/SBProcess.h" |
24 | 21 | #include "lldb/API/SBSourceManager.h" |
25 | 22 | #include "lldb/API/SBStream.h" |
|
58 | 55 | #include "lldb/Utility/ArchSpec.h" |
59 | 56 | #include "lldb/Utility/Args.h" |
60 | 57 | #include "lldb/Utility/FileSpec.h" |
| 58 | +#include "lldb/Utility/Instrumentation.h" |
| 59 | +#include "lldb/Utility/LLDBLog.h" |
61 | 60 | #include "lldb/Utility/ProcessInfo.h" |
62 | 61 | #include "lldb/Utility/RegularExpression.h" |
63 | 62 | #include "lldb/ValueObject/ValueObjectConstResult.h" |
64 | 63 | #include "lldb/ValueObject/ValueObjectList.h" |
65 | 64 | #include "lldb/ValueObject/ValueObjectVariable.h" |
| 65 | +#include "lldb/lldb-public.h" |
66 | 66 |
|
67 | 67 | #include "Commands/CommandObjectBreakpoint.h" |
68 | 68 | #include "lldb/Interpreter/CommandReturnObject.h" |
@@ -2439,3 +2439,11 @@ lldb::SBTrace SBTarget::CreateTrace(lldb::SBError &error) { |
2439 | 2439 | } |
2440 | 2440 | return SBTrace(); |
2441 | 2441 | } |
| 2442 | + |
| 2443 | +lldb::SBMutex SBTarget::GetAPIMutex() const { |
| 2444 | + LLDB_INSTRUMENT_VA(this); |
| 2445 | + |
| 2446 | + if (TargetSP target_sp = GetSP()) |
| 2447 | + return lldb::SBMutex(target_sp); |
| 2448 | + return lldb::SBMutex(); |
| 2449 | +} |
0 commit comments