| /llvm-project-15.0.7/lldb/source/API/ |
| H A D | SBTarget.cpp | 168 if (target_sp) { in GetProcess() 180 if (!target_sp) in GetPlatform() 194 if (target_sp) in GetDebugger() 204 if (!target_sp) in GetStatistics() 218 if (!target_sp) in SetCollectingStats() 227 if (!target_sp) in GetCollectingStats() 244 if (target_sp) { in LoadCore() 267 if (!target_sp) in LaunchSimple() 291 if (target_sp) { in Install() 312 if (target_sp) { in Launch() [all …]
|
| H A D | SBInstruction.cpp | 116 TargetSP target_sp(target.GetSP()); in GetMnemonic() local 118 if (target_sp) { in GetMnemonic() 121 target_sp->CalculateExecutionContext(exe_ctx); in GetMnemonic() 122 exe_ctx.SetProcessSP(target_sp->GetProcessSP()); in GetMnemonic() 135 TargetSP target_sp(target.GetSP()); in GetOperands() local 137 if (target_sp) { in GetOperands() 140 target_sp->CalculateExecutionContext(exe_ctx); in GetOperands() 141 exe_ctx.SetProcessSP(target_sp->GetProcessSP()); in GetOperands() 154 TargetSP target_sp(target.GetSP()); in GetComment() local 156 if (target_sp) { in GetComment() [all …]
|
| H A D | SBValue.cpp | 100 return target_sp && target_sp->IsValid(); in IsValid() 664 if (target_sp) in GetChildAtIndex() 713 if (target_sp) in GetChildMemberWithName() 1069 if (target_sp) { in SetSP() 1084 if (target_sp) { in SetSP() 1097 if (target_sp) { in SetSP() 1152 if (!target_sp) in EvaluateExpression() 1188 if (!target_sp) { in EvaluateExpression() 1269 if (target_sp) { in GetLoadAddress() 1299 if (target_sp) { in GetAddress() [all …]
|
| H A D | SBDebugger.cpp | 523 if (target_sp) in HandleCommand() 588 if (!target_sp) in HandleProcessEvent() 779 TargetSP target_sp; in CreateTarget() local 814 TargetSP target_sp; in CreateTargetWithFileAndTargetTriple() local 820 target_sp)); in CreateTargetWithFileAndTargetTriple() 841 TargetSP target_sp; in CreateTargetWithFileAndArch() local 850 target_sp); in CreateTargetWithFileAndArch() 882 TargetSP target_sp; in CreateTarget() local 889 target_sp); in CreateTarget() 922 if (target_sp) { in DeleteTarget() [all …]
|
| H A D | SBSourceManager.cpp | 29 SourceManagerImpl(const lldb::TargetSP &target_sp) : m_target_wp(target_sp) {} in SourceManagerImpl() argument 47 lldb::TargetSP target_sp(m_target_wp.lock()); in DisplaySourceLinesWithLineNumbers() local 48 if (target_sp) { in DisplaySourceLinesWithLineNumbers() 49 return target_sp->GetSourceManager().DisplaySourceLinesWithLineNumbers( in DisplaySourceLinesWithLineNumbers()
|
| H A D | SBBreakpoint.cpp | 791 if (target_sp && target_sp->IsValid()) in SBBreakpointListImpl() 792 m_target_wp = target_sp; in SBBreakpointListImpl() 802 TargetSP target_sp = m_target_wp.lock(); in GetBreakpointAtIndex() local 803 if (!target_sp) in GetBreakpointAtIndex() 810 TargetSP target_sp = m_target_wp.lock(); in FindBreakpointByID() local 811 if (!target_sp) in FindBreakpointByID() 823 if (!target_sp || !bkpt) in Append() 825 if (bkpt->GetTargetSP() != target_sp) in Append() 833 if (!target_sp || !bkpt) in AppendIfUnique() 835 if (bkpt->GetTargetSP() != target_sp) in AppendIfUnique() [all …]
|
| H A D | SBBreakpointName.cpp | 37 SBBreakpointNameImpl(TargetSP target_sp, const char *name) { in SBBreakpointNameImpl() argument 42 if (!target_sp) in SBBreakpointNameImpl() 45 m_target_wp = target_sp; in SBBreakpointNameImpl() 83 TargetSP target_sp = sb_target.GetSP(); in SBBreakpointNameImpl() local 84 if (!target_sp) in SBBreakpointNameImpl() 87 m_target_wp = target_sp; in SBBreakpointNameImpl() 101 TargetSP target_sp = GetTarget(); in GetBreakpointName() local 102 if (!target_sp) in GetBreakpointName() 222 TargetSP target_sp = m_impl_up->GetTarget(); in UpdateName() local 223 if (!target_sp) in UpdateName() [all …]
|
| H A D | SBCommandInterpreter.cpp | 348 TargetSP target_sp(m_opaque_ptr->GetDebugger().GetSelectedTarget()); in GetProcess() local 349 if (target_sp) { in GetProcess() 350 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in GetProcess() 351 process_sp = target_sp->GetProcessSP(); in GetProcess() 436 TargetSP target_sp(m_opaque_ptr->GetDebugger().GetSelectedTarget()); in SourceInitFileInGlobalDirectory() local 438 if (target_sp) in SourceInitFileInGlobalDirectory() 439 lock = std::unique_lock<std::recursive_mutex>(target_sp->GetAPIMutex()); in SourceInitFileInGlobalDirectory() 459 TargetSP target_sp(m_opaque_ptr->GetDebugger().GetSelectedTarget()); in SourceInitFileInHomeDirectory() local 461 if (target_sp) in SourceInitFileInHomeDirectory() 475 TargetSP target_sp(m_opaque_ptr->GetDebugger().GetSelectedTarget()); in SourceInitFileInCurrentWorkingDirectory() local [all …]
|
| /llvm-project-15.0.7/lldb/source/Target/ |
| H A D | TargetList.cpp | 339 if (!target_sp) in CreateTargetInternal() 412 TargetSP target_sp; in FindTargetWithProcess() local 414 return target_sp; in FindTargetWithProcess() 423 target_sp = *it; in FindTargetWithProcess() 425 return target_sp; in FindTargetWithProcess() 429 TargetSP target_sp; in GetTargetSP() local 437 target_sp = *it; in GetTargetSP() 439 return target_sp; in GetTargetSP() 447 if (target_sp) { in SendAsyncInterrupt() 479 if (target_sp) { in SignalIfRunning() [all …]
|
| H A D | ExecutionContext.cpp | 27 if (target_sp) in ExecutionContext() 53 if (target_sp) in ExecutionContext() 245 m_target_sp = target_sp; in SetTargetSP() 290 m_target_sp = target_sp; in SetContext() 291 if (get_process && target_sp) in SetContext() 458 m_target_wp = target_sp; in SetTargetSP() 499 if (target_sp) { in SetTargetPtr() 500 m_target_wp = target_sp; in SetTargetPtr() 562 if (target_sp && !target_sp->IsValid()) in GetTargetSP() 563 target_sp.reset(); in GetTargetSP() [all …]
|
| H A D | ProcessTrace.cpp | 31 ProcessSP ProcessTrace::CreateInstance(TargetSP target_sp, in CreateInstance() argument 37 return std::make_shared<ProcessTrace>(target_sp, listener_sp); in CreateInstance() 40 bool ProcessTrace::CanDebug(TargetSP target_sp, bool plugin_specified_by_name) { in CanDebug() argument 44 ProcessTrace::ProcessTrace(TargetSP target_sp, ListenerSP listener_sp) in ProcessTrace() argument 45 : PostMortemProcess(target_sp, listener_sp) {} in ProcessTrace()
|
| H A D | StackFrame.cpp | 99 if (m_sc.target_sp) in StackFrame() 127 if (m_sc.target_sp) in StackFrame() 200 if (target_sp) { in GetFrameCodeAddress() 236 if (target_sp) { in GetFrameCodeAddressForSymbolication() 306 if (!m_sc.target_sp) { in GetSymbolContext() 308 if (m_sc.target_sp) in GetSymbolContext() 404 if (m_sc.target_sp) { in GetSymbolContext() 1747 TargetSP target_sp; in CalculateTarget() local 1754 return target_sp; in CalculateTarget() 1850 assert(!m_sc.target_sp || !curr_frame.m_sc.target_sp || in UpdatePreviousFrameFromCurrentFrame() [all …]
|
| /llvm-project-15.0.7/lldb/unittests/Target/ |
| H A D | ExecutionContextTest.cpp | 83 TargetSP target_sp; in TEST_F() local 86 *debugger_sp, "", arch, eLoadDependentsNo, platform_sp, target_sp); in TEST_F() 87 ASSERT_TRUE(target_sp); in TEST_F() 88 ASSERT_TRUE(target_sp->GetArchitecture().IsValid()); in TEST_F() 91 ExecutionContext target_ctx(target_sp, false); in TEST_F() 92 EXPECT_EQ(target_sp->GetArchitecture().GetByteOrder(), in TEST_F() 105 TargetSP target_sp; in TEST_F() local 108 *debugger_sp, "", arch, eLoadDependentsNo, platform_sp, target_sp); in TEST_F() 109 ASSERT_TRUE(target_sp); in TEST_F() 110 ASSERT_TRUE(target_sp->GetArchitecture().IsValid()); in TEST_F() [all …]
|
| /llvm-project-15.0.7/lldb/source/Core/ |
| H A D | SearchFilter.cpp | 78 const lldb::TargetSP& target_sp, in CreateFromStructuredData() argument 166 ret_sp->SetTarget(target_sp); in CreateCopy() 209 empty_sc.target_sp = m_target_sp; in Search() 224 empty_sc.target_sp = m_target_sp; in SearchInModuleList() 356 const lldb::TargetSP& target_sp, in CreateFromStructuredData() argument 417 empty_sc.target_sp = m_target_sp; in Search() 456 const lldb::TargetSP& target_sp, in CreateFromStructuredData() argument 535 empty_sc.target_sp = m_target_sp; in Search() 586 const lldb::TargetSP& target_sp, in CreateFromStructuredData() argument 636 const lldb::TargetSP& target_sp, in CreateFromStructuredData() argument [all …]
|
| H A D | DumpDataExtractor.cpp | 146 TargetSP target_sp; in DumpInstructions() local 148 target_sp = exe_scope->CalculateTarget(); in DumpInstructions() 149 if (target_sp) { in DumpInstructions() 160 if (target_sp->GetSectionLoadList().IsEmpty() || in DumpInstructions() 268 TargetSP target_sp = exe_scope->CalculateTarget(); in GetMemoryTags() local 269 if (!target_sp) in GetMemoryTags() 272 ProcessSP process_sp = target_sp->CalculateProcess(); in GetMemoryTags() 647 TargetSP target_sp; in DumpDataExtractor() local 650 target_sp = exe_scope->CalculateTarget(); in DumpDataExtractor() 651 if (target_sp) { in DumpDataExtractor() [all …]
|
| /llvm-project-15.0.7/lldb/unittests/Thread/ |
| H A D | ThreadTest.cpp | 86 TargetSP target_sp; in CreateTarget() local 88 *debugger_sp, "", arch, eLoadDependentsNo, platform_sp, target_sp); in CreateTarget() 90 return target_sp; in CreateTarget() 102 TargetSP target_sp = CreateTarget(debugger_sp, arch); in TEST_F() local 103 ASSERT_TRUE(target_sp); in TEST_F() 106 ProcessSP process_sp = std::make_shared<DummyProcess>(target_sp, listener_sp); in TEST_F() 137 TargetSP target_sp = CreateTarget(debugger_sp, arch); in TEST_F() local 138 ASSERT_TRUE(target_sp); in TEST_F() 141 ProcessSP process_sp = std::make_shared<DummyProcess>(target_sp, listener_sp); in TEST_F()
|
| /llvm-project-15.0.7/lldb/source/Plugins/Process/FreeBSDKernel/ |
| H A D | ProcessFreeBSDKernel.cpp | 34 ProcessFreeBSDKernelFVC(lldb::TargetSP target_sp, lldb::ListenerSP listener, 52 ProcessFreeBSDKernelKVM(lldb::TargetSP target_sp, lldb::ListenerSP listener, 69 ProcessFreeBSDKernel::ProcessFreeBSDKernel(lldb::TargetSP target_sp, in ProcessFreeBSDKernel() argument 71 : PostMortemProcess(target_sp, listener_sp) {} in ProcessFreeBSDKernel() 73 lldb::ProcessSP ProcessFreeBSDKernel::CreateInstance(lldb::TargetSP target_sp, in CreateInstance() argument 77 ModuleSP executable = target_sp->GetExecutableModule(); in CreateInstance() 115 bool ProcessFreeBSDKernel::CanDebug(lldb::TargetSP target_sp, in CanDebug() argument 277 ProcessFreeBSDKernelFVC::ProcessFreeBSDKernelFVC(lldb::TargetSP target_sp, in ProcessFreeBSDKernelFVC() argument 280 : ProcessFreeBSDKernel(target_sp, listener_sp), m_fvc(fvc) {} in ProcessFreeBSDKernelFVC() 304 ProcessFreeBSDKernelKVM::ProcessFreeBSDKernelKVM(lldb::TargetSP target_sp, in ProcessFreeBSDKernelKVM() argument [all …]
|
| /llvm-project-15.0.7/lldb/include/lldb/Core/ |
| H A D | SearchFilter.h | 89 SearchFilter(const lldb::TargetSP &target_sp); 91 SearchFilter(const lldb::TargetSP &target_sp, unsigned char filterType); 200 lldb::SearchFilterSP CreateCopy(lldb::TargetSP& target_sp); 203 CreateFromStructuredData(const lldb::TargetSP& target_sp, 276 void SetTarget(lldb::TargetSP &target_sp) { m_target_sp = target_sp; } in SetTarget() argument 291 SearchFilterForUnconstrainedSearches(const lldb::TargetSP &target_sp) in SearchFilterForUnconstrainedSearches() argument 292 : SearchFilter(target_sp, FilterTy::Unconstrained) {} in SearchFilterForUnconstrainedSearches() 301 CreateFromStructuredData(const lldb::TargetSP& target_sp, 343 CreateFromStructuredData(const lldb::TargetSP& target_sp, 390 CreateFromStructuredData(const lldb::TargetSP& target_sp, [all …]
|
| /llvm-project-15.0.7/lldb/include/lldb/Target/ |
| H A D | TargetList.h | 91 lldb::TargetSP &target_sp); 100 lldb::PlatformSP &platform_sp, lldb::TargetSP &target_sp); 116 bool DeleteTarget(lldb::TargetSP &target_sp); 122 uint32_t GetIndexOfTarget(lldb::TargetSP target_sp) const; 200 const OptionGroupPlatform *platform_options, lldb::TargetSP &target_sp); 207 lldb::TargetSP &target_sp); 209 void AddTargetInternal(lldb::TargetSP target_sp, bool do_select);
|
| /llvm-project-15.0.7/lldb/source/DataFormatters/ |
| H A D | TypeFormat.cpp | 76 TargetSP target_sp(valobj->GetTargetSP()); in FormatObject() local 77 if (target_sp) { in FormatObject() 78 size_t max_len = target_sp->GetMaximumSizeOfStringSummary(); in FormatObject() 83 if (target_sp->ReadCStringFromMemory( in FormatObject() 148 TargetSP target_sp; in FormatObject() local 151 valobj_key = (target_sp = valobj->GetTargetSP()).get(); in FormatObject() 153 target_sp = process_sp->GetTarget().shared_from_this(); in FormatObject() 160 if (!target_sp) in FormatObject() 162 const ModuleList &images(target_sp->GetImages()); in FormatObject()
|
| /llvm-project-15.0.7/lldb/unittests/Process/ |
| H A D | ProcessEventDataTest.cpp | 113 TargetSP target_sp; in CreateTarget() local 115 *debugger_sp, "", arch, eLoadDependentsNo, platform_sp, target_sp); in CreateTarget() 117 return target_sp; in CreateTarget() 152 TargetSP target_sp = CreateTarget(debugger_sp, arch); in TEST_F() local 153 ASSERT_TRUE(target_sp); in TEST_F() 156 ProcessSP process_sp = std::make_shared<DummyProcess>(target_sp, listener_sp); in TEST_F() 192 TargetSP target_sp = CreateTarget(debugger_sp, arch); in TEST_F() local 193 ASSERT_TRUE(target_sp); in TEST_F() 196 ProcessSP process_sp = std::make_shared<DummyProcess>(target_sp, listener_sp); in TEST_F()
|
| /llvm-project-15.0.7/lldb/source/Plugins/Trace/intel-pt/ |
| H A D | TraceIntelPTBundleLoader.cpp | 93 TargetSP target_sp; in ParseProcess() local 97 /*platform_options*/ nullptr, target_sp); in ParseProcess() 99 if (!target_sp) in ParseProcess() 103 parsed_process.target_sp = target_sp; in ParseProcess() 105 ProcessSP process_sp = target_sp->CreateProcess( in ParseProcess() 116 if (Error err = ParseModule(*target_sp, module)) in ParseProcess() 138 m_debugger.GetTargetList().DeleteTarget(parsed_process.target_sp); in LoadBundle() 282 processes.push_back(parsed_process.target_sp->GetProcessSP()); in CreateTraceIntelPTInstance() 290 parsed_process.target_sp->SetTrace(trace_instance); in CreateTraceIntelPTInstance()
|
| /llvm-project-15.0.7/lldb/source/Plugins/Process/scripted/ |
| H A D | ScriptedProcess.cpp | 53 lldb::ProcessSP ScriptedProcess::CreateInstance(lldb::TargetSP target_sp, in CreateInstance() argument 57 if (!target_sp || in CreateInstance() 58 !IsScriptLanguageSupported(target_sp->GetDebugger().GetScriptLanguage())) in CreateInstance() 63 target_sp->GetProcessLaunchInfo()); in CreateInstance() 66 target_sp, listener_sp, scripted_process_info, error); in CreateInstance() 77 bool ScriptedProcess::CanDebug(lldb::TargetSP target_sp, in CanDebug() argument 83 lldb::TargetSP target_sp, lldb::ListenerSP listener_sp, in ScriptedProcess() argument 86 : Process(target_sp, listener_sp), in ScriptedProcess() 89 if (!target_sp) { in ScriptedProcess() 95 m_interpreter = target_sp->GetDebugger().GetScriptInterpreter(); in ScriptedProcess() [all …]
|
| /llvm-project-15.0.7/lldb/source/Expression/ |
| H A D | IRMemoryMap.cpp | 23 IRMemoryMap::IRMemoryMap(lldb::TargetSP target_sp) : m_target_wp(target_sp) { in IRMemoryMap() argument 24 if (target_sp) in IRMemoryMap() 25 m_process_wp = target_sp->GetProcessSP(); in IRMemoryMap() 59 lldb::TargetSP target_sp = m_target_wp.lock(); in FindSpace() local 234 lldb::TargetSP target_sp = m_target_wp.lock(); in GetByteOrder() local 236 if (target_sp) in GetByteOrder() 248 lldb::TargetSP target_sp = m_target_wp.lock(); in GetAddressByteSize() local 250 if (target_sp) in GetAddressByteSize() 264 if (target_sp) in GetBestExecutionContextScope() 265 return target_sp.get(); in GetBestExecutionContextScope() [all …]
|
| /llvm-project-15.0.7/lldb/source/Plugins/Language/CPlusPlus/ |
| H A D | GenericBitset.cpp | 61 if (auto target_sp = m_backend.GetTargetSP()) { in GenericBitsetFrontEnd() local 62 m_byte_order = target_sp->GetArchitecture().GetByteOrder(); in GenericBitsetFrontEnd() 63 m_byte_size = target_sp->GetArchitecture().GetAddressByteSize(); in GenericBitsetFrontEnd() 82 TargetSP target_sp = m_backend.GetTargetSP(); in Update() local 83 if (!target_sp) in Update()
|