/freebsd/contrib/llvm-project/lldb/source/API/ |
H A D | SBTarget.cpp | 103 SBTarget::SBTarget(const TargetSP &target_sp) : m_opaque_sp(target_sp) { in SBTarget() argument 104 LLDB_INSTRUMENT_VA(this, target_sp); in SBTarget() 168 TargetSP target_sp(GetSP()); in GetProcess() local 169 if (target_sp) { in GetProcess() 170 process_sp = target_sp->GetProcessSP(); in GetProcess() 180 TargetSP target_sp(GetSP()); in GetPlatform() local 181 if (!target_sp) in GetPlatform() 185 platform.m_opaque_sp = target_sp->GetPlatform(); in GetPlatform() 194 TargetSP target_sp(GetSP()); in GetDebugger() local 195 if (target_sp) in GetDebugger() [all …]
|
H A D | SBInstruction.cpp | 118 TargetSP target_sp(target.GetSP()); in GetMnemonic() local 120 if (target_sp) { in GetMnemonic() 121 lock = std::unique_lock<std::recursive_mutex>(target_sp->GetAPIMutex()); in GetMnemonic() 123 target_sp->CalculateExecutionContext(exe_ctx); in GetMnemonic() 124 exe_ctx.SetProcessSP(target_sp->GetProcessSP()); in GetMnemonic() 137 TargetSP target_sp(target.GetSP()); in GetOperands() local 139 if (target_sp) { in GetOperands() 140 lock = std::unique_lock<std::recursive_mutex>(target_sp->GetAPIMutex()); in GetOperands() 142 target_sp->CalculateExecutionContext(exe_ctx); in GetOperands() 143 exe_ctx.SetProcessSP(target_sp in GetOperands() 156 TargetSP target_sp(target.GetSP()); GetComment() local 173 TargetSP target_sp(target.GetSP()); GetControlFlowKind() local [all...] |
H A D | SBValue.cpp | 99 TargetSP target_sp = m_valobj_sp->GetTargetSP(); in IsValid() local 100 return target_sp && target_sp->IsValid(); in IsValid() 653 TargetSP target_sp; in GetChildAtIndex() local 655 target_sp = m_opaque_sp->GetTargetSP(); in GetChildAtIndex() 657 if (target_sp) in GetChildAtIndex() 658 use_dynamic = target_sp->GetPreferDynamicValue(); in GetChildAtIndex() 702 TargetSP target_sp; in GetChildMemberWithName() local 704 target_sp = m_opaque_sp->GetTargetSP(); in GetChildMemberWithName() 706 if (target_sp) in GetChildMemberWithName() 707 use_dynamic_value = target_sp->GetPreferDynamicValue(); in GetChildMemberWithName() [all …]
|
H A D | SBDebugger.cpp | 570 TargetSP target_sp(m_opaque_sp->GetSelectedTarget()); in HandleCommand() local 572 if (target_sp) in HandleCommand() 573 lock = std::unique_lock<std::recursive_mutex>(target_sp->GetAPIMutex()); in HandleCommand() 636 TargetSP target_sp(process.GetTarget().GetSP()); in HandleProcessEvent() local 637 if (!target_sp) in HandleProcessEvent() 644 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in HandleProcessEvent() 831 TargetSP target_sp; in CreateTarget() local 840 &platform_options, target_sp); in CreateTarget() 843 sb_target.SetSP(target_sp); in CreateTarget() 855 static_cast<void *>(target_sp.get())); in CreateTarget() [all …]
|
H A D | SBSourceManager.cpp | 28 SourceManagerImpl(const lldb::TargetSP &target_sp) : m_target_wp(target_sp) {} 46 lldb::TargetSP target_sp(m_target_wp.lock()); in DisplaySourceLinesWithLineNumbers() 47 if (target_sp) { in DisplaySourceLinesWithLineNumbers() local 48 return target_sp->GetSourceManager().DisplaySourceLinesWithLineNumbers( in DisplaySourceLinesWithLineNumbers() 29 SourceManagerImpl(const lldb::TargetSP & target_sp) SourceManagerImpl() argument
|
H A D | SBBreakpoint.cpp | 788 SBBreakpointListImpl(lldb::TargetSP target_sp) { in SBBreakpointListImpl() argument 789 if (target_sp && target_sp->IsValid()) in SBBreakpointListImpl() 790 m_target_wp = target_sp; in SBBreakpointListImpl() 800 TargetSP target_sp = m_target_wp.lock(); in GetBreakpointAtIndex() local 801 if (!target_sp) in GetBreakpointAtIndex() 804 return target_sp->GetBreakpointList().FindBreakpointByID(bp_id); in GetBreakpointAtIndex() 808 TargetSP target_sp = m_target_wp.lock(); in FindBreakpointByID() local 809 if (!target_sp) in FindBreakpointByID() 814 return target_sp->GetBreakpointList().FindBreakpointByID(break_id); in FindBreakpointByID() 820 TargetSP target_sp = m_target_wp.lock(); in Append() local [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() 105 return target_sp->FindBreakpointName(ConstString(m_name), true, error); in GetBreakpointName() 222 TargetSP target_sp = m_impl_up->GetTarget(); in UpdateName() local [all …]
|
/freebsd/contrib/llvm-project/lldb/source/Target/ |
H A D | TargetList.cpp | 50 TargetSP &target_sp) { in CreateTarget() argument 54 platform_options, target_sp); in CreateTarget() 56 if (target_sp && result.Success()) in CreateTarget() 57 AddTargetInternal(target_sp, /*do_select*/ true); in CreateTarget() 65 PlatformSP &platform_sp, TargetSP &target_sp) { in CreateTarget() argument 69 platform_sp, target_sp); in CreateTarget() 71 if (target_sp && result.Success()) in CreateTarget() 72 AddTargetInternal(target_sp, /*do_select*/ true); in CreateTarget() 79 const OptionGroupPlatform *platform_options, TargetSP &target_sp) { in CreateTargetInternal() argument 243 platform_sp, target_sp); in CreateTargetInternal() [all …]
|
H A D | ExecutionContext.cpp | 24 ExecutionContext::ExecutionContext(const lldb::TargetSP &target_sp, in ExecutionContext() argument 27 if (target_sp) in ExecutionContext() 28 SetContext(target_sp, get_process); in ExecutionContext() 52 lldb::TargetSP target_sp(target_wp.lock()); in ExecutionContext() local 53 if (target_sp) in ExecutionContext() 54 SetContext(target_sp, get_process); in ExecutionContext() 245 void ExecutionContext::SetTargetSP(const lldb::TargetSP &target_sp) { in SetTargetSP() argument 246 m_target_sp = target_sp; in SetTargetSP() 289 void ExecutionContext::SetContext(const lldb::TargetSP &target_sp, in SetContext() argument 291 m_target_sp = target_sp; in SetContext() [all …]
|
H A D | ProcessTrace.cpp | 33 ProcessSP ProcessTrace::CreateInstance(TargetSP target_sp, in CreateInstance() argument 39 return std::make_shared<ProcessTrace>(target_sp, listener_sp, *crash_file); in CreateInstance() 42 bool ProcessTrace::CanDebug(TargetSP target_sp, bool plugin_specified_by_name) { in CanDebug() argument 46 ProcessTrace::ProcessTrace(TargetSP target_sp, ListenerSP listener_sp, in ProcessTrace() argument 48 : PostMortemProcess(target_sp, listener_sp, core_file) {} in ProcessTrace()
|
H A D | StackFrame.cpp | 98 if (reg_context_sp && !m_sc.target_sp) { in StackFrame() 99 m_sc.target_sp = reg_context_sp->CalculateTarget(); in StackFrame() 100 if (m_sc.target_sp) in StackFrame() 126 if (!m_sc.target_sp && reg_context_sp) { in StackFrame() 127 m_sc.target_sp = reg_context_sp->CalculateTarget(); in StackFrame() 128 if (m_sc.target_sp) in StackFrame() 200 TargetSP target_sp(thread_sp->CalculateTarget()); in GetFrameCodeAddress() local 201 if (target_sp) { in GetFrameCodeAddress() 204 m_frame_code_addr.GetOffset(), target_sp.get(), in GetFrameCodeAddress() 236 TargetSP target_sp = CalculateTarget(); in GetFrameCodeAddressForSymbolication() local [all …]
|
H A D | ThreadPlanTracer.cpp | 48 TargetSP target_sp(GetThread().CalculateTarget()); in GetLogStream() 49 if (target_sp) in GetLogStream() local 50 return &(target_sp->GetDebugger().GetOutputStream()); in GetLogStream() 105 if (auto target_sp = m_process.CalculateTarget()) { in GetIntPointerType() 107 target_sp->GetScratchTypeSystemForLanguage(eLanguageTypeC); in GetIntPointerType() 116 target_sp->GetArchitecture().GetAddressByteSize() * 8)); in GetIntPointerType() 106 if (auto target_sp = m_process.CalculateTarget()) { GetIntPointerType() local
|
/freebsd/contrib/llvm-project/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; 207 const OptionGroupPlatform *platform_options, lldb::TargetSP &target_sp); 214 lldb::TargetSP &target_sp); 216 void RegisterInProcessTarget(lldb::TargetSP target_sp); 218 void UnregisterInProcessTarget(lldb::TargetSP target_sp); 220 bool IsTargetInProcess(lldb::TargetSP target_sp); 222 void AddTargetInternal(lldb::TargetSP target_sp, bool do_select);
|
/freebsd/contrib/llvm-project/lldb/source/Core/ |
H A D | SearchFilter.cpp | 72 SearchFilter::SearchFilter(const TargetSP &target_sp, unsigned char filterType) in SearchFilter() argument 73 : m_target_sp(target_sp), SubclassID(filterType) {} in SearchFilter() 78 const lldb::TargetSP& target_sp, in CreateFromStructuredData() argument 113 target_sp, *subclass_options, error); in CreateFromStructuredData() 117 target_sp, *subclass_options, error); in CreateFromStructuredData() 121 target_sp, *subclass_options, error); in CreateFromStructuredData() 125 target_sp, *subclass_options, error); in CreateFromStructuredData() 164 lldb::SearchFilterSP SearchFilter::CreateCopy(lldb::TargetSP& target_sp) { in CreateCopy() argument 166 ret_sp->SetTarget(target_sp); in CreateCopy() 209 empty_sc.target_sp in Search() 356 CreateFromStructuredData(const lldb::TargetSP & target_sp,const StructuredData::Dictionary & data_dict,Status & error) CreateFromStructuredData() argument 391 SearchFilterByModule(const lldb::TargetSP & target_sp,const FileSpec & module) SearchFilterByModule() argument 456 CreateFromStructuredData(const lldb::TargetSP & target_sp,const StructuredData::Dictionary & data_dict,Status & error) CreateFromStructuredData() argument 498 SearchFilterByModuleList(const lldb::TargetSP & target_sp,const FileSpecList & module_list) SearchFilterByModuleList() argument 503 SearchFilterByModuleList(const lldb::TargetSP & target_sp,const FileSpecList & module_list,enum FilterTy filter_ty) SearchFilterByModuleList() argument 586 CreateFromStructuredData(const lldb::TargetSP & target_sp,const StructuredData::Dictionary & data_dict,Status & error) CreateFromStructuredData() argument 627 SearchFilterByModuleListAndCU(const lldb::TargetSP & target_sp,const FileSpecList & module_list,const FileSpecList & cu_list) SearchFilterByModuleListAndCU() argument 636 CreateFromStructuredData(const lldb::TargetSP & target_sp,const StructuredData::Dictionary & data_dict,Status & error) CreateFromStructuredData() argument [all...] |
H A D | SourceManager.cpp | 65 SourceManager::SourceManager(const TargetSP &target_sp) in SourceManager() argument 67 m_target_wp(target_sp), in SourceManager() 68 m_debugger_wp(target_sp->GetDebugger().shared_from_this()) {} in SourceManager() 84 TargetSP target_sp(m_target_wp.lock()); in GetFile() local 89 if (target_sp) in GetFile() 90 return std::make_shared<File>(file_spec, target_sp); in GetFile() 94 ProcessSP process_sp = target_sp ? target_sp->GetProcessSP() : ProcessSP(); in GetFile() 150 if (target_sp) in GetFile() 151 file_sp = std::make_shared<File>(file_spec, target_sp); in GetFile() 396 TargetSP target_sp(m_target_wp.lock()); in GetDefaultFileAndLine() local [all …]
|
H A D | DumpDataExtractor.cpp | 127 TargetSP target_sp; in DumpInstructions() local 129 target_sp = exe_scope->CalculateTarget(); in DumpInstructions() 130 if (target_sp) { in DumpInstructions() 132 Disassembler::FindPlugin(target_sp->GetArchitecture(), in DumpInstructions() 133 target_sp->GetDisassemblyFlavor(), nullptr)); in DumpInstructions() 138 if (target_sp->GetSectionLoadList().ResolveLoadAddress(addr, so_addr)) { in DumpInstructions() 141 if (target_sp->GetSectionLoadList().IsEmpty() || in DumpInstructions() 142 !target_sp->GetImages().ResolveFileAddress(addr, so_addr)) in DumpInstructions() 249 TargetSP target_sp = exe_scope->CalculateTarget(); in GetMemoryTags() local 250 if (!target_sp) in GetMemoryTags() [all …]
|
H A D | ValueObjectVTable.cpp | 70 TargetSP target_sp = GetTargetSP(); in UpdateValue() local 71 if (!target_sp) { in UpdateValue() 98 target_sp->ResolveLoadAddress(vfunc_ptr, resolved_vfunc_ptr_address); in UpdateValue() 111 auto type_system = target_sp->GetScratchTypeSystemForLanguage( in UpdateValue() 227 TargetSP target_sp = GetTargetSP(); in UpdateValue() local 229 vtable_info_or_err->addr.GetLoadAddress(target_sp.get()); in UpdateValue() 251 m_vtable_symbol->GetLoadAddress(target_sp.get()) + in UpdateValue() 258 target_sp->GetScratchTypeSystemForLanguage(eLanguageTypeC_plus_plus); in UpdateValue()
|
/freebsd/contrib/llvm-project/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 …]
|
/freebsd/contrib/llvm-project/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 72 : PostMortemProcess(target_sp, listener_sp, core_file) {} in ProcessFreeBSDKernel() 74 lldb::ProcessSP ProcessFreeBSDKernel::CreateInstance(lldb::TargetSP target_sp, in CreateInstance() argument 78 ModuleSP executable = target_sp->GetExecutableModule(); in CreateInstance() 85 return std::make_shared<ProcessFreeBSDKernelFVC>(target_sp, listener_sp, in CreateInstance() 94 return std::make_shared<ProcessFreeBSDKernelKVM>(target_sp, listener_sp, in CreateInstance() 116 bool ProcessFreeBSDKernel::CanDebug(lldb::TargetSP target_sp, in CanDebug() argument 283 ProcessFreeBSDKernelFVC::ProcessFreeBSDKernelFVC(lldb::TargetSP target_sp, in ProcessFreeBSDKernelFVC() argument [all …]
|
/freebsd/contrib/llvm-project/lldb/source/DataFormatters/ |
H A D | TypeFormat.cpp | 77 TargetSP target_sp(valobj->GetTargetSP()); in FormatObject() local 78 if (target_sp) { in FormatObject() 79 size_t max_len = target_sp->GetMaximumSizeOfStringSummary(); in FormatObject() 84 target_sp->ReadCStringFromMemory( in FormatObject() 149 TargetSP target_sp; in FormatObject() local 152 valobj_key = (target_sp = valobj->GetTargetSP()).get(); in FormatObject() 154 target_sp = process_sp->GetTarget().shared_from_this(); in FormatObject() 161 if (!target_sp) in FormatObject() 163 const ModuleList &images(target_sp->GetImages()); in FormatObject()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/Trace/intel-pt/ |
H A D | TraceIntelPTBundleLoader.cpp | 96 TargetSP target_sp; in CreateEmptyProcess() 99 /*platform_options*/ nullptr, target_sp); in CreateEmptyProcess() 101 if (!target_sp) in CreateEmptyProcess() 105 parsed_process.target_sp = target_sp; in CreateEmptyProcess() 108 ProcessSP process_sp = target_sp->CreateProcess( in CreateEmptyProcess() 126 ProcessSP process_sp = parsed_process->target_sp->GetProcessSP(); in ParseProcess() 132 if (Error err = ParseModule(*parsed_process->target_sp, module)) in ParseProcess() 155 ProcessSP process_sp = parsed_process->target_sp->GetProcessSP(); in ParseKernel() 173 parsed_process->target_sp in ParseKernel() 95 TargetSP target_sp; CreateEmptyProcess() local [all...] |
/freebsd/contrib/llvm-project/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 150 uint64_t alloc_address = target_sp->GetExprAllocAddress(); in FindSpace() 181 uint64_t align = target_sp->GetExprAllocAlign(); in FindSpace() 259 lldb::TargetSP target_sp = m_target_wp.lock(); in GetByteOrder() local 261 if (target_sp) in GetByteOrder() 262 return target_sp->GetArchitecture().GetByteOrder(); in GetByteOrder() 273 lldb::TargetSP target_sp = m_target_wp.lock(); in GetAddressByteSize() local [all …]
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/Process/scripted/ |
H A D | ScriptedProcess.cpp | 50 lldb::ProcessSP ScriptedProcess::CreateInstance(lldb::TargetSP target_sp, in CreateInstance() argument 54 if (!target_sp || in CreateInstance() 55 !IsScriptLanguageSupported(target_sp->GetDebugger().GetScriptLanguage())) in CreateInstance() 58 ScriptedMetadata scripted_metadata(target_sp->GetProcessLaunchInfo()); in CreateInstance() 62 new ScriptedProcess(target_sp, listener_sp, scripted_metadata, error)); in CreateInstance() 72 bool ScriptedProcess::CanDebug(lldb::TargetSP target_sp, in CanDebug() argument 77 ScriptedProcess::ScriptedProcess(lldb::TargetSP target_sp, in ScriptedProcess() argument 81 : Process(target_sp, listener_sp), m_scripted_metadata(scripted_metadata) { in ScriptedProcess() 83 if (!target_sp) { in ScriptedProcess() 90 target_sp in ScriptedProcess() [all...] |
/freebsd/contrib/llvm-project/lldb/source/Plugins/Language/CPlusPlus/ |
H A D | Coroutines.cpp | 46 static Function *ExtractDestroyFunction(lldb::TargetSP target_sp, in ExtractDestroyFunction() argument 48 lldb::ProcessSP process_sp = target_sp->GetProcessSP(); in ExtractDestroyFunction() 59 if (!target_sp->ResolveLoadAddress(destroy_func_addr, destroy_func_address)) in ExtractDestroyFunction() 150 lldb::TargetSP target_sp = m_backend.GetTargetSP(); in Update() local 152 lldb::ProcessSP process_sp = target_sp->GetProcessSP(); in Update() 175 ExtractDestroyFunction(target_sp, frame_ptr_addr)) { in Update()
|
H A D | GenericBitset.cpp | 64 if (auto target_sp = m_backend.GetTargetSP()) { in GenericBitsetFrontEnd() local 65 m_byte_order = target_sp->GetArchitecture().GetByteOrder(); in GenericBitsetFrontEnd() 66 m_byte_size = target_sp->GetArchitecture().GetAddressByteSize(); in GenericBitsetFrontEnd() 87 TargetSP target_sp = m_backend.GetTargetSP(); in Update() local 88 if (!target_sp) in Update()
|