Home
last modified time | relevance | path

Searched refs:target_sp (Results 1 – 25 of 143) sorted by relevance

123456

/freebsd/contrib/llvm-project/lldb/source/API/
H A DSBTarget.cpp104 SBTarget::SBTarget(const TargetSP &target_sp) : m_opaque_sp(target_sp) { in SBTarget() argument
105 LLDB_INSTRUMENT_VA(this, target_sp); in SBTarget()
169 if (TargetSP target_sp = GetSP()) { in GetProcess() local
170 process_sp = target_sp->GetProcessSP(); in GetProcess()
180 if (TargetSP target_sp = GetSP()) { in GetPlatform() local
182 platform.m_opaque_sp = target_sp->GetPlatform(); in GetPlatform()
192 if (TargetSP target_sp = GetSP()) in GetDebugger() local
193 debugger.reset(target_sp->GetDebugger().shared_from_this()); in GetDebugger()
207 if (TargetSP target_sp = GetSP()) { in GetStatistics() local
210 target_sp->GetDebugger(), target_sp.get(), in GetStatistics()
[all …]
H A DSBInstruction.cpp117 TargetSP target_sp(target.GetSP()); in GetMnemonic() local
119 if (target_sp) { in GetMnemonic()
120 lock = std::unique_lock<std::recursive_mutex>(target_sp->GetAPIMutex()); in GetMnemonic()
122 target_sp->CalculateExecutionContext(exe_ctx); in GetMnemonic()
123 exe_ctx.SetProcessSP(target_sp->GetProcessSP()); in GetMnemonic()
136 TargetSP target_sp(target.GetSP()); in GetOperands() local
138 if (target_sp) { in GetOperands()
139 lock = std::unique_lock<std::recursive_mutex>(target_sp->GetAPIMutex()); in GetOperands()
141 target_sp->CalculateExecutionContext(exe_ctx); in GetOperands()
142 exe_ctx.SetProcessSP(target_sp->GetProcessSP()); in GetOperands()
[all …]
H A DSBValue.cpp99 TargetSP target_sp = m_valobj_sp->GetTargetSP(); in IsValid() local
100 return target_sp && target_sp->IsValid(); in IsValid()
657 lldb::TargetSP target_sp = m_opaque_sp->GetTargetSP(); in CreateBoolValue() local
658 if (value_sp && target_sp) { in CreateBoolValue()
660 ValueObject::CreateValueObjectFromBool(target_sp, value, name); in CreateBoolValue()
670 TargetSP target_sp; in GetChildAtIndex() local
672 target_sp = m_opaque_sp->GetTargetSP(); in GetChildAtIndex()
674 if (target_sp) in GetChildAtIndex()
675 use_dynamic = target_sp->GetPreferDynamicValue(); in GetChildAtIndex()
721 TargetSP target_sp; in GetChildMemberWithName() local
[all …]
H A DSBDebugger.cpp527 TargetSP target_sp(m_opaque_sp->GetSelectedTarget()); in HandleCommand() local
529 if (target_sp) in HandleCommand()
530 lock = std::unique_lock<std::recursive_mutex>(target_sp->GetAPIMutex()); in HandleCommand()
593 TargetSP target_sp(process.GetTarget().GetSP()); in HandleProcessEvent() local
594 if (!target_sp) in HandleProcessEvent()
601 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in HandleProcessEvent()
791 TargetSP target_sp; in CreateTarget() local
800 &platform_options, target_sp); in CreateTarget()
803 sb_target.SetSP(target_sp); in CreateTarget()
815 static_cast<void *>(target_sp.get())); in CreateTarget()
[all …]
H A DSBMutex.cpp34 SBMutex::SBMutex(lldb::TargetSP target_sp) in SBMutex() argument
36 target_sp, &target_sp->GetAPIMutex())) { in SBMutex()
37 LLDB_INSTRUMENT_VA(this, target_sp); in SBMutex()
H A DSBSymbol.cpp119 TargetSP target_sp(target.GetSP()); in GetInstructions() local
121 if (target_sp && m_opaque_ptr->ValueIsAddress()) { in GetInstructions()
122 lock = std::unique_lock<std::recursive_mutex>(target_sp->GetAPIMutex()); in GetInstructions()
130 target_sp->GetDisassemblyCPU(), target_sp->GetDisassemblyFeatures(), in GetInstructions()
131 *target_sp, symbol_range, force_live_memory)); in GetInstructions()
H A DSBSourceManager.cpp28 SourceManagerImpl(const lldb::TargetSP &target_sp) : m_target_wp(target_sp) {} in SourceManagerImpl() argument
46 lldb::TargetSP target_sp(m_target_wp.lock()); in DisplaySourceLinesWithLineNumbers() local
47 if (target_sp) { in DisplaySourceLinesWithLineNumbers()
48 return target_sp->GetSourceManager().DisplaySourceLinesWithLineNumbers( in DisplaySourceLinesWithLineNumbers()
H A DSBBreakpoint.cpp801 SBBreakpointListImpl(lldb::TargetSP target_sp) { in SBBreakpointListImpl() argument
802 if (target_sp && target_sp->IsValid()) in SBBreakpointListImpl()
803 m_target_wp = target_sp; in SBBreakpointListImpl()
813 TargetSP target_sp = m_target_wp.lock(); in GetBreakpointAtIndex() local
814 if (!target_sp) in GetBreakpointAtIndex()
817 return target_sp->GetBreakpointList().FindBreakpointByID(bp_id); in GetBreakpointAtIndex()
821 TargetSP target_sp = m_target_wp.lock(); in FindBreakpointByID() local
822 if (!target_sp) in FindBreakpointByID()
827 return target_sp->GetBreakpointList().FindBreakpointByID(break_id); in FindBreakpointByID()
833 TargetSP target_sp = m_target_wp.lock(); in Append() local
[all …]
H A DSBFunction.cpp121 TargetSP target_sp(target.GetSP()); in GetInstructions() local
124 if (target_sp && module_sp) { in GetInstructions()
125 lock = std::unique_lock<std::recursive_mutex>(target_sp->GetAPIMutex()); in GetInstructions()
129 target_sp->GetDisassemblyCPU(), target_sp->GetDisassemblyFeatures(), in GetInstructions()
130 *target_sp, m_opaque_ptr->GetAddressRanges(), force_live_memory)); in GetInstructions()
H A DSBBreakpointName.cpp37 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 DTargetList.cpp50 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
244 platform_sp, target_sp); in CreateTargetInternal()
[all …]
H A DExecutionContext.cpp24 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 DProcessTrace.cpp33 ProcessSP ProcessTrace::CreateInstance(TargetSP target_sp, in CreateInstance() argument
39 return std::make_shared<ProcessTrace>(target_sp, listener_sp, in CreateInstance()
43 bool ProcessTrace::CanDebug(TargetSP target_sp, bool plugin_specified_by_name) { in CanDebug() argument
47 ProcessTrace::ProcessTrace(TargetSP target_sp, ListenerSP listener_sp, in ProcessTrace() argument
49 : PostMortemProcess(target_sp, listener_sp, core_file) {} in ProcessTrace()
H A DStackFrame.cpp102 if (reg_context_sp && !m_sc.target_sp) { in StackFrame()
103 m_sc.target_sp = reg_context_sp->CalculateTarget(); in StackFrame()
104 if (m_sc.target_sp) in StackFrame()
130 if (!m_sc.target_sp && reg_context_sp) { in StackFrame()
131 m_sc.target_sp = reg_context_sp->CalculateTarget(); in StackFrame()
132 if (m_sc.target_sp) in StackFrame()
204 TargetSP target_sp(thread_sp->CalculateTarget()); in GetFrameCodeAddress() local
205 if (target_sp) { in GetFrameCodeAddress()
208 m_frame_code_addr.GetOffset(), target_sp.get(), in GetFrameCodeAddress()
240 TargetSP target_sp = CalculateTarget(); in GetFrameCodeAddressForSymbolication() local
[all …]
/freebsd/contrib/llvm-project/lldb/include/lldb/Target/
H A DTargetList.h90 lldb::TargetSP &target_sp);
99 lldb::PlatformSP &platform_sp, lldb::TargetSP &target_sp);
115 bool DeleteTarget(lldb::TargetSP &target_sp);
121 uint32_t GetIndexOfTarget(lldb::TargetSP target_sp) const;
206 const OptionGroupPlatform *platform_options, lldb::TargetSP &target_sp);
213 lldb::TargetSP &target_sp);
215 void RegisterInProcessTarget(lldb::TargetSP target_sp);
217 void UnregisterInProcessTarget(lldb::TargetSP target_sp);
219 bool IsTargetInProcess(lldb::TargetSP target_sp);
221 void AddTargetInternal(lldb::TargetSP target_sp, bool do_select);
/freebsd/contrib/llvm-project/lldb/source/Core/
H A DSearchFilter.cpp72 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
116 target_sp, *subclass_options, error); in CreateFromStructuredData()
120 target_sp, *subclass_options, error); in CreateFromStructuredData()
124 target_sp, *subclass_options, error); in CreateFromStructuredData()
128 target_sp, *subclass_options, error); in CreateFromStructuredData()
168 lldb::SearchFilterSP SearchFilter::CreateCopy(lldb::TargetSP& target_sp) { in CreateCopy() argument
170 ret_sp->SetTarget(target_sp); in CreateCopy()
213 empty_sc.target_sp = m_target_sp; in Search()
[all …]
H A DSourceManager.cpp71 SourceManager::SourceManager(const TargetSP &target_sp) in SourceManager() argument
73 m_last_count(0), m_default_set(false), m_target_wp(target_sp), in SourceManager()
74 m_debugger_wp(target_sp->GetDebugger().shared_from_this()) {} in SourceManager()
94 TargetSP target_sp(m_target_wp.lock()); in GetFile() local
99 if (target_sp) in GetFile()
100 return std::make_shared<File>(support_file_sp, target_sp); in GetFile()
104 ProcessSP process_sp = target_sp ? target_sp->GetProcessSP() : ProcessSP(); in GetFile()
161 if (target_sp) in GetFile()
162 file_sp = std::make_shared<File>(support_file_sp, target_sp); in GetFile()
413 TargetSP target_sp(m_target_wp.lock()); in GetDefaultFileAndLine() local
[all …]
H A DDumpDataExtractor.cpp127 TargetSP target_sp; in DumpInstructions() local
129 target_sp = exe_scope->CalculateTarget(); in DumpInstructions()
130 if (target_sp) { in DumpInstructions()
132 target_sp->GetArchitecture(), target_sp->GetDisassemblyFlavor(), in DumpInstructions()
133 target_sp->GetDisassemblyCPU(), target_sp->GetDisassemblyFeatures(), in DumpInstructions()
139 if (target_sp->ResolveLoadAddress(addr, so_addr)) { in DumpInstructions()
142 if (!target_sp->HasLoadedSections() || in DumpInstructions()
143 !target_sp->GetImages().ResolveFileAddress(addr, so_addr)) in DumpInstructions()
250 TargetSP target_sp = exe_scope->CalculateTarget(); in GetMemoryTags() local
251 if (!target_sp) in GetMemoryTags()
[all …]
/freebsd/contrib/llvm-project/lldb/include/lldb/Core/
H A DSearchFilter.h89 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 DProcessFreeBSDKernel.cpp34 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 DTypeFormat.cpp77 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()
153 TargetSP target_sp; in FormatObject() local
156 valobj_key = (target_sp = valobj->GetTargetSP()).get(); in FormatObject()
158 target_sp = process_sp->GetTarget().shared_from_this(); in FormatObject()
165 if (!target_sp) in FormatObject()
167 const ModuleList &images(target_sp->GetImages()); in FormatObject()
/freebsd/contrib/llvm-project/lldb/source/Plugins/Trace/intel-pt/
H A DTraceIntelPTBundleLoader.cpp96 TargetSP target_sp; in CreateEmptyProcess() local
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->GetOrCreateModule(module_spec, false, &error); in ParseKernel()
184 module_sp->SetLoadAddress(*parsed_process->target_sp, load_address, false, in ParseKernel()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/Protocol/MCP/
H A DResource.cpp114 lldb::TargetSP target_sp = target_list.GetTargetAtIndex(j); in GetResources() local
115 if (!target_sp) in GetResources()
117 resources.emplace_back(GetTargetResource(j, *target_sp)); in GetResources()
193 lldb::TargetSP target_sp = target_list.GetTargetAtIndex(target_idx); in ReadTargetResource() local
194 if (!target_sp) in ReadTargetResource()
200 target_resource.arch = target_sp->GetArchitecture().GetTriple().str(); in ReadTargetResource()
201 target_resource.dummy = target_sp->IsDummyTarget(); in ReadTargetResource()
202 target_resource.selected = target_sp == debugger_sp->GetSelectedTarget(); in ReadTargetResource()
204 if (Module *exe_module = target_sp->GetExecutableModulePointer()) in ReadTargetResource()
206 if (lldb::PlatformSP platform_sp = target_sp->GetPlatform()) in ReadTargetResource()
/freebsd/contrib/llvm-project/lldb/source/ValueObject/
H A DValueObjectVTable.cpp70 TargetSP target_sp = GetTargetSP(); in UpdateValue() local
71 if (!target_sp) { in UpdateValue()
97 target_sp->ResolveLoadAddress(vfunc_ptr, resolved_vfunc_ptr_address); in UpdateValue()
110 auto type_system = target_sp->GetScratchTypeSystemForLanguage( in UpdateValue()
226 TargetSP target_sp = GetTargetSP(); in UpdateValue() local
228 vtable_info_or_err->addr.GetLoadAddress(target_sp.get()); in UpdateValue()
250 m_vtable_symbol->GetLoadAddress(target_sp.get()) + in UpdateValue()
257 target_sp->GetScratchTypeSystemForLanguage(eLanguageTypeC_plus_plus); in UpdateValue()
/freebsd/contrib/llvm-project/lldb/source/Expression/
H A DIRMemoryMap.cpp23 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
158 uint64_t alloc_address = target_sp->GetExprAllocAddress(); in FindSpace()
189 uint64_t align = target_sp->GetExprAllocAlign(); in FindSpace()
267 lldb::TargetSP target_sp = m_target_wp.lock(); in GetByteOrder() local
269 if (target_sp) in GetByteOrder()
270 return target_sp->GetArchitecture().GetByteOrder(); in GetByteOrder()
281 lldb::TargetSP target_sp = m_target_wp.lock(); in GetAddressByteSize() local
[all …]

123456