| /freebsd-12-stable/contrib/llvm-project/lldb/source/API/ |
| D | SBTarget.cpp | 108 SBTarget::SBTarget(const TargetSP &target_sp) : m_opaque_sp(target_sp) { in SBTarget() argument 109 LLDB_RECORD_CONSTRUCTOR(SBTarget, (const lldb::TargetSP &), target_sp); in SBTarget() 181 TargetSP target_sp(GetSP()); in GetProcess() local 182 if (target_sp) { in GetProcess() 183 process_sp = target_sp->GetProcessSP(); in GetProcess() 193 TargetSP target_sp(GetSP()); in GetPlatform() local 194 if (!target_sp) in GetPlatform() 198 platform.m_opaque_sp = target_sp->GetPlatform(); in GetPlatform() 207 TargetSP target_sp(GetSP()); in GetDebugger() local 208 if (target_sp) in GetDebugger() [all …]
|
| D | SBInstruction.cpp | 121 TargetSP target_sp(target.GetSP()); in GetMnemonic() local 123 if (target_sp) { in GetMnemonic() 124 lock = std::unique_lock<std::recursive_mutex>(target_sp->GetAPIMutex()); in GetMnemonic() 126 target_sp->CalculateExecutionContext(exe_ctx); in GetMnemonic() 127 exe_ctx.SetProcessSP(target_sp->GetProcessSP()); in GetMnemonic() 141 TargetSP target_sp(target.GetSP()); in GetOperands() local 143 if (target_sp) { in GetOperands() 144 lock = std::unique_lock<std::recursive_mutex>(target_sp->GetAPIMutex()); in GetOperands() 146 target_sp->CalculateExecutionContext(exe_ctx); in GetOperands() 147 exe_ctx.SetProcessSP(target_sp->GetProcessSP()); in GetOperands() [all …]
|
| D | SBValue.cpp | 101 TargetSP target_sp = m_valobj_sp->GetTargetSP(); in IsValid() local 102 return target_sp && target_sp->IsValid(); in IsValid() 677 TargetSP target_sp; in GetChildAtIndex() local 679 target_sp = m_opaque_sp->GetTargetSP(); in GetChildAtIndex() 681 if (target_sp) in GetChildAtIndex() 682 use_dynamic = target_sp->GetPreferDynamicValue(); in GetChildAtIndex() 731 TargetSP target_sp; in GetChildMemberWithName() local 733 target_sp = m_opaque_sp->GetTargetSP(); in GetChildMemberWithName() 735 if (target_sp) in GetChildMemberWithName() 736 use_dynamic_value = target_sp->GetPreferDynamicValue(); in GetChildMemberWithName() [all …]
|
| D | SBDebugger.cpp | 514 TargetSP target_sp(m_opaque_sp->GetSelectedTarget()); in HandleCommand() local 516 if (target_sp) in HandleCommand() 517 lock = std::unique_lock<std::recursive_mutex>(target_sp->GetAPIMutex()); in HandleCommand() 589 TargetSP target_sp(process.GetTarget().GetSP()); in HandleProcessEvent() local 590 if (!target_sp) in HandleProcessEvent() 597 std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); in HandleProcessEvent() 775 TargetSP target_sp; in CreateTarget() local 784 &platform_options, target_sp); in CreateTarget() 787 sb_target.SetSP(target_sp); in CreateTarget() 799 static_cast<void *>(target_sp.get())); in CreateTarget() [all …]
|
| D | SBSourceManager.cpp | 29 SourceManagerImpl(const lldb::TargetSP &target_sp) in SourceManagerImpl() argument 30 : m_debugger_wp(), m_target_wp(target_sp) {} in SourceManagerImpl() 48 lldb::TargetSP target_sp(m_target_wp.lock()); in DisplaySourceLinesWithLineNumbers() local 49 if (target_sp) { in DisplaySourceLinesWithLineNumbers() 50 return target_sp->GetSourceManager().DisplaySourceLinesWithLineNumbers( in DisplaySourceLinesWithLineNumbers()
|
| 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() 231 TargetSP target_sp = m_impl_up->GetTarget(); in UpdateName() local [all …]
|
| D | SBBreakpoint.cpp | 824 SBBreakpointListImpl(lldb::TargetSP target_sp) : m_target_wp() { in SBBreakpointListImpl() argument 825 if (target_sp && target_sp->IsValid()) in SBBreakpointListImpl() 826 m_target_wp = target_sp; in SBBreakpointListImpl() 836 TargetSP target_sp = m_target_wp.lock(); in GetBreakpointAtIndex() local 837 if (!target_sp) in GetBreakpointAtIndex() 840 return target_sp->GetBreakpointList().FindBreakpointByID(bp_id); in GetBreakpointAtIndex() 844 TargetSP target_sp = m_target_wp.lock(); in FindBreakpointByID() local 845 if (!target_sp) in FindBreakpointByID() 850 return target_sp->GetBreakpointList().FindBreakpointByID(break_id); in FindBreakpointByID() 856 TargetSP target_sp = m_target_wp.lock(); in Append() local [all …]
|
| /freebsd-12-stable/contrib/llvm-project/lldb/source/Target/ |
| 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 282 platform_sp, target_sp); in CreateTargetInternal() [all …]
|
| D | ExecutionContext.cpp | 26 ExecutionContext::ExecutionContext(const lldb::TargetSP &target_sp, in ExecutionContext() argument 29 if (target_sp) in ExecutionContext() 30 SetContext(target_sp, get_process); in ExecutionContext() 54 lldb::TargetSP target_sp(target_wp.lock()); in ExecutionContext() local 55 if (target_sp) in ExecutionContext() 56 SetContext(target_sp, get_process); in ExecutionContext() 246 void ExecutionContext::SetTargetSP(const lldb::TargetSP &target_sp) { in SetTargetSP() argument 247 m_target_sp = target_sp; in SetTargetSP() 290 void ExecutionContext::SetContext(const lldb::TargetSP &target_sp, in SetContext() argument 292 m_target_sp = target_sp; in SetContext() [all …]
|
| D | StackFrame.cpp | 96 if (reg_context_sp && !m_sc.target_sp) { in StackFrame() 97 m_sc.target_sp = reg_context_sp->CalculateTarget(); in StackFrame() 98 if (m_sc.target_sp) in StackFrame() 124 if (!m_sc.target_sp && reg_context_sp) { in StackFrame() 125 m_sc.target_sp = reg_context_sp->CalculateTarget(); in StackFrame() 126 if (m_sc.target_sp) in StackFrame() 198 TargetSP target_sp(thread_sp->CalculateTarget()); in GetFrameCodeAddress() local 199 if (target_sp) { in GetFrameCodeAddress() 202 m_frame_code_addr.GetOffset(), target_sp.get(), in GetFrameCodeAddress() 234 TargetSP target_sp = CalculateTarget(); in GetFrameCodeAddressForSymbolication() local [all …]
|
| D | ProcessTrace.cpp | 35 ProcessSP ProcessTrace::CreateInstance(TargetSP target_sp, in CreateInstance() argument 41 return std::make_shared<ProcessTrace>(target_sp, listener_sp); in CreateInstance() 44 bool ProcessTrace::CanDebug(TargetSP target_sp, bool plugin_specified_by_name) { in CanDebug() argument 48 ProcessTrace::ProcessTrace(TargetSP target_sp, ListenerSP listener_sp) in ProcessTrace() argument 49 : PostMortemProcess(target_sp, listener_sp) {} in ProcessTrace()
|
| D | ThreadPlanTracer.cpp | 48 TargetSP target_sp(GetThread().CalculateTarget()); in GetLogStream() local 49 if (target_sp) in GetLogStream() 50 return &(target_sp->GetDebugger().GetOutputStream()); in GetLogStream() 105 if (auto target_sp = m_process.CalculateTarget()) { in GetIntPointerType() local 107 target_sp->GetScratchTypeSystemForLanguage(eLanguageTypeC); in GetIntPointerType() 117 target_sp->GetArchitecture().GetAddressByteSize() * 8)); in GetIntPointerType()
|
| D | RegisterContext.cpp | 127 TargetSP target_sp = m_thread.CalculateTarget(); in GetPC() local 128 if (target_sp) { in GetPC() 129 Target *target = target_sp.get(); in GetPC() 157 TargetSP target_sp = m_thread.CalculateTarget(); in GetPCForSymbolication() local 158 if (!target_sp.get()) in GetPCForSymbolication() 163 address.SetLoadAddress(pc, target_sp.get()); in GetPCForSymbolication() 168 TargetSP target_sp = m_thread.CalculateTarget(); in SetPC() local 169 Target *target = target_sp.get(); in SetPC()
|
| /freebsd-12-stable/contrib/llvm-project/lldb/source/Core/ |
| 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 = m_target_sp; in Search() [all …]
|
| D | DumpDataExtractor.cpp | 143 TargetSP target_sp; in DumpInstructions() local 145 target_sp = exe_scope->CalculateTarget(); in DumpInstructions() 146 if (target_sp) { in DumpInstructions() 148 Disassembler::FindPlugin(target_sp->GetArchitecture(), in DumpInstructions() 149 target_sp->GetDisassemblyFlavor(), nullptr)); in DumpInstructions() 154 if (target_sp->GetSectionLoadList().ResolveLoadAddress(addr, so_addr)) { in DumpInstructions() 157 if (target_sp->GetSectionLoadList().IsEmpty() || in DumpInstructions() 158 !target_sp->GetImages().ResolveFileAddress(addr, so_addr)) in DumpInstructions() 547 TargetSP target_sp; in DumpDataExtractor() local 550 target_sp = exe_scope->CalculateTarget(); in DumpDataExtractor() [all …]
|
| D | SourceManager.cpp | 54 SourceManager::SourceManager(const TargetSP &target_sp) in SourceManager() argument 56 m_target_wp(target_sp), in SourceManager() 57 m_debugger_wp(target_sp->GetDebugger().shared_from_this()) {} in SourceManager() 75 TargetSP target_sp(m_target_wp.lock()); in GetFile() local 79 if (target_sp && file_sp && in GetFile() 81 target_sp->GetSourcePathMap().GetModificationID()) in GetFile() 90 if (target_sp) in GetFile() 91 file_sp = std::make_shared<File>(file_spec, target_sp.get()); in GetFile() 331 TargetSP target_sp(m_target_wp.lock()); in GetDefaultFileAndLine() local 333 if (target_sp) { in GetDefaultFileAndLine() [all …]
|
| /freebsd-12-stable/contrib/llvm-project/lldb/source/Plugins/Process/scripted/ |
| D | ScriptedProcess.cpp | 60 lldb::ProcessSP ScriptedProcess::CreateInstance(lldb::TargetSP target_sp, in CreateInstance() argument 64 if (!target_sp || in CreateInstance() 65 !IsScriptLanguageSupported(target_sp->GetDebugger().GetScriptLanguage())) in CreateInstance() 70 target_sp->GetProcessLaunchInfo()); in CreateInstance() 73 target_sp, listener_sp, scripted_process_info, error); in CreateInstance() 85 bool ScriptedProcess::CanDebug(lldb::TargetSP target_sp, in CanDebug() argument 91 lldb::TargetSP target_sp, lldb::ListenerSP listener_sp, in ScriptedProcess() argument 94 : Process(target_sp, listener_sp), in ScriptedProcess() 97 if (!target_sp) { in ScriptedProcess() 103 m_interpreter = target_sp->GetDebugger().GetScriptInterpreter(); in ScriptedProcess() [all …]
|
| /freebsd-12-stable/contrib/llvm-project/lldb/source/Plugins/Trace/common/ |
| D | TraceSessionFileParser.cpp | 28 Error TraceSessionFileParser::ParseModule(lldb::TargetSP &target_sp, in ParseModule() argument 46 target_sp->GetOrCreateModule(module_spec, /*notify*/ false, &error); in ParseModule() 52 module_sp->SetLoadAddress(*target_sp, module.load_address.value, false, in ParseModule() 115 TargetSP target_sp; in ParseProcess() local 119 /*platform_options*/ nullptr, target_sp); in ParseProcess() 121 if (!target_sp) in ParseProcess() 125 parsed_process.target_sp = target_sp; in ParseProcess() 127 ProcessSP process_sp = target_sp->CreateProcess( in ParseProcess() 138 if (Error err = ParseModule(target_sp, module)) in ParseProcess() 160 m_debugger.GetTargetList().DeleteTarget(parsed_process.target_sp); in ParseCommonSessionFile()
|
| /freebsd-12-stable/contrib/llvm-project/lldb/include/lldb/Core/ |
| 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-12-stable/contrib/llvm-project/lldb/include/lldb/Target/ |
| 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);
|
| D | ProcessTrace.h | 30 ProcessTrace(lldb::TargetSP target_sp, lldb::ListenerSP listener_sp); 34 bool CanDebug(lldb::TargetSP target_sp, 78 static lldb::ProcessSP CreateInstance(lldb::TargetSP target_sp,
|
| /freebsd-12-stable/contrib/llvm-project/lldb/source/DataFormatters/ |
| 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() 82 if (target_sp->ReadCStringFromMemory( in FormatObject() 147 TargetSP target_sp; in FormatObject() local 150 valobj_key = (target_sp = valobj->GetTargetSP()).get(); in FormatObject() 152 target_sp = process_sp->GetTarget().shared_from_this(); in FormatObject() 159 if (!target_sp) in FormatObject() 161 const ModuleList &images(target_sp->GetImages()); in FormatObject()
|
| /freebsd-12-stable/contrib/llvm-project/lldb/source/Plugins/Language/CPlusPlus/ |
| D | LibCxxBitset.cpp | 51 if (auto target_sp = m_backend.GetTargetSP()) { in BitsetFrontEnd() local 52 m_byte_order = target_sp->GetArchitecture().GetByteOrder(); in BitsetFrontEnd() 53 m_byte_size = target_sp->GetArchitecture().GetAddressByteSize(); in BitsetFrontEnd() 62 TargetSP target_sp = m_backend.GetTargetSP(); in Update() local 63 if (!target_sp) in Update() 65 size_t capping_size = target_sp->GetMaximumNumberOfChildrenToDisplay(); in Update()
|
| /freebsd-12-stable/contrib/llvm-project/lldb/source/Expression/ |
| D | IRMemoryMap.cpp | 22 IRMemoryMap::IRMemoryMap(lldb::TargetSP target_sp) : m_target_wp(target_sp) { in IRMemoryMap() argument 23 if (target_sp) in IRMemoryMap() 24 m_process_wp = target_sp->GetProcessSP(); in IRMemoryMap() 58 lldb::TargetSP target_sp = m_target_wp.lock(); in FindSpace() local 233 lldb::TargetSP target_sp = m_target_wp.lock(); in GetByteOrder() local 235 if (target_sp) in GetByteOrder() 236 return target_sp->GetArchitecture().GetByteOrder(); in GetByteOrder() 247 lldb::TargetSP target_sp = m_target_wp.lock(); in GetAddressByteSize() local 249 if (target_sp) in GetAddressByteSize() 250 return target_sp->GetArchitecture().GetAddressByteSize(); in GetAddressByteSize() [all …]
|
| /freebsd-12-stable/contrib/llvm-project/lldb/source/Commands/ |
| D | CommandObjectQuit.cpp | 44 TargetSP target_sp(target_list.GetTargetAtIndex(target_idx)); in ShouldAskForConfirmation() local 45 if (!target_sp) in ShouldAskForConfirmation() 47 ProcessSP process_sp(target_sp->GetProcessSP()); in ShouldAskForConfirmation()
|