/freebsd/contrib/llvm-project/lldb/source/API/ |
H A D | SBAttachInfo.cpp | 21 SBAttachInfo::SBAttachInfo() : m_opaque_sp(new ProcessAttachInfo()) { in SBAttachInfo() 26 : m_opaque_sp(new ProcessAttachInfo()) { in SBAttachInfo() 29 m_opaque_sp->SetProcessID(pid); in SBAttachInfo() 33 : m_opaque_sp(new ProcessAttachInfo()) { in SBAttachInfo() 37 m_opaque_sp->GetExecutableFile().SetFile(path, FileSpec::Style::native); in SBAttachInfo() 38 m_opaque_sp->SetWaitForLaunch(wait_for); in SBAttachInfo() 42 : m_opaque_sp(new ProcessAttachInfo()) { in SBAttachInfo() 46 m_opaque_sp->GetExecutableFile().SetFile(path, FileSpec::Style::native); in SBAttachInfo() 47 m_opaque_sp->SetWaitForLaunch(wait_for); in SBAttachInfo() 48 m_opaque_sp->SetAsync(async); in SBAttachInfo() [all …]
|
H A D | SBLaunchInfo.cpp | 44 : m_opaque_sp(new SBLaunchInfoImpl()) { in SBLaunchInfo() 47 m_opaque_sp->GetFlags().Reset(eLaunchFlagDebug | eLaunchFlagDisableASLR); in SBLaunchInfo() 49 m_opaque_sp->GetArguments().SetArguments(argv); in SBLaunchInfo() 55 m_opaque_sp = rhs.m_opaque_sp; in SBLaunchInfo() 61 m_opaque_sp = rhs.m_opaque_sp; in operator =() 68 return *m_opaque_sp; in ref() 72 *m_opaque_sp = info; in set_ref() 78 return m_opaque_sp->GetProcessID(); in GetProcessID() 84 return m_opaque_sp->GetUserID(); in GetUserID() 90 return m_opaque_sp->GetGroupID(); in GetGroupID() [all …]
|
H A D | SBDebugger.cpp | 93 : m_opaque_sp(debugger_sp) { in SBDebugger() 97 SBDebugger::SBDebugger(const SBDebugger &rhs) : m_opaque_sp(rhs.m_opaque_sp) { in SBDebugger() 107 m_opaque_sp = rhs.m_opaque_sp; in operator =() 169 SBBroadcaster broadcaster(&m_opaque_sp->GetBroadcaster(), false); in GetBroadcaster() 253 if (m_opaque_sp) in Clear() 254 m_opaque_sp->ClearIOHandlers(); in Clear() 256 m_opaque_sp.reset(); in Clear() 306 Debugger::Destroy(debugger.m_opaque_sp); in Destroy() 308 if (debugger.m_opaque_sp.get() != nullptr) in Destroy() 309 debugger.m_opaque_sp.reset(); in Destroy() [all …]
|
H A D | SBData.cpp | 25 SBData::SBData() : m_opaque_sp(new DataExtractor()) { in SBData() 29 SBData::SBData(const lldb::DataExtractorSP &data_sp) : m_opaque_sp(data_sp) {} in SBData() 31 SBData::SBData(const SBData &rhs) : m_opaque_sp(rhs.m_opaque_sp) { in SBData() 39 m_opaque_sp = rhs.m_opaque_sp; in operator =() 46 m_opaque_sp = data_sp; in SetOpaque() 49 lldb_private::DataExtractor *SBData::get() const { return m_opaque_sp.get(); } in get() 52 return m_opaque_sp.operator->(); in operator ->() 55 lldb::DataExtractorSP &SBData::operator*() { return m_opaque_sp; } in operator *() 57 const lldb::DataExtractorSP &SBData::operator*() const { return m_opaque_sp; } in operator *() 66 return m_opaque_sp.get() != nullptr; in operator bool() [all …]
|
H A D | SBType.cpp | 38 SBType::SBType(const CompilerType &type) : m_opaque_sp(new TypeImpl(type)) {} in SBType() 41 : m_opaque_sp(new TypeImpl(type_sp)) {} in SBType() 44 : m_opaque_sp(type_impl_sp) {} in SBType() 50 m_opaque_sp = rhs.m_opaque_sp; in SBType() 67 return *m_opaque_sp.get() == *rhs.m_opaque_sp.get(); in operator ==() 79 return *m_opaque_sp.get() != *rhs.m_opaque_sp.get(); in operator !=() 82 lldb::TypeImplSP SBType::GetSP() { return m_opaque_sp; } in GetSP() 85 m_opaque_sp = type_impl_sp; in SetSP() 92 m_opaque_sp = rhs.m_opaque_sp; in operator =() 100 if (m_opaque_sp.get() == nullptr) in ref() [all …]
|
H A D | SBListener.cpp | 26 : m_opaque_sp(Listener::MakeListener(name)) { in SBListener() 30 SBListener::SBListener(const SBListener &rhs) : m_opaque_sp(rhs.m_opaque_sp) { in SBListener() 38 m_opaque_sp = rhs.m_opaque_sp; in operator =() 45 : m_opaque_sp(listener_sp) {} in SBListener() 56 return m_opaque_sp != nullptr; in operator bool() 64 m_opaque_sp->AddEvent(event_sp); in AddEvent() 70 if (m_opaque_sp) in Clear() 71 m_opaque_sp->Clear(); in Clear() 79 if (m_opaque_sp) { in StartListeningForEventClass() 84 return m_opaque_sp->StartListeningForEventSpec( in StartListeningForEventClass() [all …]
|
H A D | SBTypeSynthetic.cpp | 42 : m_opaque_sp(rhs.m_opaque_sp) { in SBTypeSynthetic() 55 return m_opaque_sp.get() != nullptr; in operator bool() 63 const char *code = m_opaque_sp->GetPythonCode(); in IsClassCode() 81 return ConstString(m_opaque_sp->GetPythonCode()).GetCString(); in GetData() 83 return ConstString(m_opaque_sp->GetPythonClassName()).GetCString(); in GetData() 90 m_opaque_sp->SetPythonClassName(data); in SetClassName() 97 m_opaque_sp->SetPythonCode(data); in SetClassCode() 105 return m_opaque_sp->GetOptions(); in GetOptions() 113 m_opaque_sp in SetOptions() [all...] |
H A D | SBTypeFormat.cpp | 22 : m_opaque_sp( in SBTypeFormat() 28 : m_opaque_sp(TypeFormatImplSP(new TypeFormatImpl_EnumType( in SBTypeFormat() 34 : m_opaque_sp(rhs.m_opaque_sp) { in SBTypeFormat() 47 return m_opaque_sp.get() != nullptr; in operator bool() 53 if (IsValid() && m_opaque_sp->GetType() == TypeFormatImpl::Type::eTypeFormat) in GetFormat() 54 return ((TypeFormatImpl_Format *)m_opaque_sp.get())->GetFormat(); in GetFormat() 61 if (IsValid() && m_opaque_sp->GetType() == TypeFormatImpl::Type::eTypeEnum) in GetTypeName() 62 return ((TypeFormatImpl_EnumType *)m_opaque_sp.get()) in GetTypeName() 72 return m_opaque_sp in GetOptions() [all...] |
H A D | SBTypeCategory.cpp | 32 DataVisualization::Categories::GetCategory(ConstString(name), m_opaque_sp); in SBTypeCategory() 36 : m_opaque_sp(rhs.m_opaque_sp) { in SBTypeCategory() 49 return (m_opaque_sp.get() != nullptr); in operator bool() 57 return m_opaque_sp->IsEnabled(); in GetEnabled() 66 DataVisualization::Categories::Enable(m_opaque_sp); in SetEnabled() 68 DataVisualization::Categories::Disable(m_opaque_sp); in SetEnabled() 76 return ConstString(m_opaque_sp->GetName()).GetCString(); in GetName() 83 return m_opaque_sp->GetLanguageAtIndex(idx); in GetLanguageAtIndex() 91 return m_opaque_sp->GetNumLanguages(); in GetNumLanguages() 99 m_opaque_sp->AddLanguage(language); in AddLanguage() [all …]
|
H A D | SBTypeEnumMember.cpp | 30 : m_opaque_sp(enum_member_sp) {} in SBTypeEnumMember() 35 m_opaque_sp = clone(rhs.m_opaque_sp); in SBTypeEnumMember() 42 m_opaque_sp = clone(rhs.m_opaque_sp); in operator =() 53 return m_opaque_sp.get(); in operator bool() 59 if (m_opaque_sp.get()) in GetName() 60 return m_opaque_sp->GetName().GetCString(); in GetName() 67 if (m_opaque_sp.get()) in GetValueAsSigned() 68 return m_opaque_sp->GetValueAsSigned(); in GetValueAsSigned() 75 if (m_opaque_sp.get()) in GetValueAsUnsigned() 76 return m_opaque_sp->GetValueAsUnsigned(); in GetValueAsUnsigned() [all …]
|
H A D | SBTraceCursor.cpp | 21 : m_opaque_sp{std::move(trace_cursor_sp)} { in SBTraceCursor() 28 m_opaque_sp->SetForwards(forwards); in SetForwards() 34 return m_opaque_sp->IsForwards(); in IsForwards() 40 return m_opaque_sp->Next(); in Next() 46 return m_opaque_sp->HasValue(); in HasValue() 52 return m_opaque_sp->GoToId(id); in GoToId() 58 return m_opaque_sp->HasId(id); in HasId() 64 return m_opaque_sp->GetId(); in GetId() 70 return m_opaque_sp->Seek(offset, origin); in Seek() 76 return m_opaque_sp->GetItemKind(); in GetItemKind() [all …]
|
H A D | SBTypeSummary.cpp | 164 : m_opaque_sp(rhs.m_opaque_sp) { in SBTypeSummary() 177 return m_opaque_sp.get() != nullptr; in operator bool() 186 llvm::dyn_cast<ScriptSummaryFormat>(m_opaque_sp.get())) { in IsFunctionCode() 199 llvm::dyn_cast<ScriptSummaryFormat>(m_opaque_sp.get())) { in IsFunctionName() 212 return m_opaque_sp->GetKind() == TypeSummaryImpl::Kind::eSummaryString; in IsSummaryString() 221 llvm::dyn_cast<ScriptSummaryFormat>(m_opaque_sp.get())) { in GetData() 228 llvm::dyn_cast<StringSummaryFormat>(m_opaque_sp.get())) in GetData() 238 return m_opaque_sp->GetOptions(); in GetOptions() 246 m_opaque_sp in SetOptions() [all...] |
H A D | SBTypeFilter.cpp | 22 : m_opaque_sp(TypeFilterImplSP(new TypeFilterImpl(options))) { in SBTypeFilter() 27 : m_opaque_sp(rhs.m_opaque_sp) { in SBTypeFilter() 40 return m_opaque_sp.get() != nullptr; in operator bool() 47 return m_opaque_sp->GetOptions(); in GetOptions() 55 m_opaque_sp->SetOptions(value); in SetOptions() 65 description.Printf("%s\n", m_opaque_sp->GetDescription().c_str()); in GetDescription() 74 m_opaque_sp->Clear(); in Clear() 81 return m_opaque_sp->GetCount(); in GetNumberOfExpressionPaths() 91 const char *item = m_opaque_sp in GetExpressionPathAtIndex() [all...] |
H A D | SBThreadCollection.cpp | 20 : m_opaque_sp(rhs.m_opaque_sp) { in SBThreadCollection() 29 m_opaque_sp = rhs.m_opaque_sp; in operator =() 34 : m_opaque_sp(threads) {} in SBThreadCollection() 39 m_opaque_sp = threads; in SetOpaque() 43 return m_opaque_sp.get(); in get() 47 return m_opaque_sp.operator->(); in operator ->() 51 return m_opaque_sp; in operator *() 55 return m_opaque_sp; in operator *() 65 return m_opaque_sp.get() != nullptr; in operator bool() 71 if (m_opaque_sp) in GetSize() [all …]
|
H A D | SBTypeNameSpecifier.cpp | 30 : m_opaque_sp(new TypeNameSpecifierImpl(name, match_type)) { in SBTypeNameSpecifier() 34 m_opaque_sp.reset(); in SBTypeNameSpecifier() 41 m_opaque_sp = TypeNameSpecifierImplSP( in SBTypeNameSpecifier() 42 new TypeNameSpecifierImpl(type.m_opaque_sp->GetCompilerType(true))); in SBTypeNameSpecifier() 46 : m_opaque_sp(rhs.m_opaque_sp) { in SBTypeNameSpecifier() 59 return m_opaque_sp.get() != nullptr; in operator bool() 68 return ConstString(m_opaque_sp->GetName()).GetCString(); in GetName() 76 lldb_private::CompilerType c_type = m_opaque_sp->GetCompilerType(); in GetType() 86 return m_opaque_sp->GetMatchType(); in GetMatchType() 95 return m_opaque_sp->GetMatchType() == eFormatterMatchRegex; in IsRegex() [all …]
|
H A D | SBFile.cpp | 19 SBFile::SBFile(FileSP file_sp) : m_opaque_sp(file_sp) { in SBFile() 25 SBFile::SBFile(const SBFile &rhs) : m_opaque_sp(rhs.m_opaque_sp) { in SBFile() 33 m_opaque_sp = rhs.m_opaque_sp; in operator =() 42 m_opaque_sp = std::make_shared<NativeFile>(file, transfer_ownership); in SBFile() 53 m_opaque_sp = in SBFile() 61 if (!m_opaque_sp) { in Read() 65 Status status = m_opaque_sp->Read(buf, num_bytes); in Read() 77 if (!m_opaque_sp) { in Write() 81 Status status = m_opaque_sp->Write(buf, num_bytes); in Write() 92 if (!m_opaque_sp) { in Flush() [all …]
|
H A D | SBInstructionList.cpp | 27 : m_opaque_sp(rhs.m_opaque_sp) { in SBInstructionList() 36 m_opaque_sp = rhs.m_opaque_sp; in operator =() 49 return m_opaque_sp.get() != nullptr; in operator bool() 55 if (m_opaque_sp) in GetSize() 56 return m_opaque_sp->GetInstructionList().GetSize(); in GetSize() 64 if (m_opaque_sp && idx < m_opaque_sp->GetInstructionList().GetSize()) in GetInstructionAtIndex() 66 m_opaque_sp, in GetInstructionAtIndex() [all...] |
H A D | SBTrace.cpp | 27 SBTrace::SBTrace(const lldb::TraceSP &trace_sp) : m_opaque_sp(trace_sp) { in SBTrace() 49 if (!m_opaque_sp) { in CreateNewCursor() 59 m_opaque_sp->CreateNewCursor(*thread.get())) { in CreateNewCursor() 74 if (!m_opaque_sp) in SaveToDisk() 77 m_opaque_sp->SaveToDisk(bundle_dir.ref(), compact)) in SaveToDisk() 87 if (!m_opaque_sp) in GetStartConfigurationHelp() 90 return ConstString(m_opaque_sp->GetStartConfigurationHelp()).GetCString(); in GetStartConfigurationHelp() 96 if (!m_opaque_sp) in Start() 99 m_opaque_sp->Start(configuration.m_impl_up->GetObjectSP())) in Start() 109 if (!m_opaque_sp) in Start() [all …]
|
H A D | SBBroadcaster.cpp | 22 : m_opaque_sp(new Broadcaster(nullptr, name)) { in SBBroadcaster() 25 m_opaque_ptr = m_opaque_sp.get(); in SBBroadcaster() 29 : m_opaque_sp(owns ? broadcaster : nullptr), m_opaque_ptr(broadcaster) {} in SBBroadcaster() 32 : m_opaque_sp(rhs.m_opaque_sp), m_opaque_ptr(rhs.m_opaque_ptr) { in SBBroadcaster() 40 m_opaque_sp = rhs.m_opaque_sp; in operator =() 78 m_opaque_ptr->AddInitialEventsToListener(listener.m_opaque_sp, in AddInitialEventsToListener() 87 return m_opaque_ptr->AddListener(listener.m_opaque_sp, event_mask); in AddListener() 112 return m_opaque_ptr->RemoveListener(listener.m_opaque_sp, event_mask); in RemoveListener() 120 m_opaque_sp.reset(broadcaster); in reset() 122 m_opaque_sp.reset(); in reset() [all …]
|
H A D | SBQueue.cpp | 213 SBQueue::SBQueue() : m_opaque_sp(new QueueImpl()) { LLDB_INSTRUMENT_VA(this); } in SBQueue() 216 : m_opaque_sp(new QueueImpl(queue_sp)) { in SBQueue() 226 m_opaque_sp = rhs.m_opaque_sp; in SBQueue() 232 m_opaque_sp = rhs.m_opaque_sp; in operator =() 245 return m_opaque_sp->IsValid(); in operator bool() 251 m_opaque_sp->Clear(); in Clear() 255 m_opaque_sp->SetQueue(queue_sp); in SetQueue() 261 return m_opaque_sp->GetQueueID(); in GetQueueID() 267 uint32_t index_id = m_opaque_sp->GetIndexID(); in GetIndexID() 274 return m_opaque_sp->GetName(); in GetName() [all …]
|
H A D | SBThread.cpp | 60 SBThread::SBThread() : m_opaque_sp(new ExecutionContextRef()) { in SBThread() 65 : m_opaque_sp(new ExecutionContextRef(lldb_object_sp)) { in SBThread() 72 m_opaque_sp = clone(rhs.m_opaque_sp); in SBThread() 81 m_opaque_sp = clone(rhs.m_opaque_sp); in operator =() 94 ExecutionContext exe_ctx(m_opaque_sp.get(), lock); in GetQueue() 117 ExecutionContext exe_ctx(m_opaque_sp.get(), lock); in operator bool() 124 return m_opaque_sp->GetThreadSP().get() != nullptr; in operator bool() 133 m_opaque_sp->Clear(); in Clear() 141 ExecutionContext exe_ctx(m_opaque_sp.get(), lock); in GetStopReason() 157 ExecutionContext exe_ctx(m_opaque_sp.get(), lock); in GetStopReasonDataCount() [all …]
|
H A D | SBFrame.cpp | 60 SBFrame::SBFrame() : m_opaque_sp(new ExecutionContextRef()) { in SBFrame() 65 : m_opaque_sp(new ExecutionContextRef(lldb_object_sp)) { in SBFrame() 72 m_opaque_sp = clone(rhs.m_opaque_sp); in SBFrame() 81 m_opaque_sp = clone(rhs.m_opaque_sp); in operator =() 86 return (m_opaque_sp ? m_opaque_sp->GetFrameSP() : StackFrameSP()); in GetFrameSP() 90 return m_opaque_sp->SetFrameSP(lldb_object_sp); in SetFrameSP() 101 ExecutionContext exe_ctx(m_opaque_sp.get(), lock); in operator bool() 120 ExecutionContext exe_ctx(m_opaque_sp.get(), lock); in GetSymbolContext() 141 ExecutionContext exe_ctx(m_opaque_sp.get(), lock); in GetModule() 165 ExecutionContext exe_ctx(m_opaque_sp.get(), lock); in GetCompileUnit() [all …]
|
H A D | SBValue.cpp | 231 SetSP(rhs.m_opaque_sp); in SBValue() 238 SetSP(rhs.m_opaque_sp); in operator =() 255 return m_opaque_sp.get() != nullptr && m_opaque_sp->IsValid() && in operator bool() 256 m_opaque_sp->GetRootSP().get() != nullptr; in operator bool() 262 m_opaque_sp.reset(); in Clear() 654 if (m_opaque_sp) in GetChildAtIndex() 655 target_sp = m_opaque_sp->GetTargetSP(); in GetChildAtIndex() 703 if (m_opaque_sp) in GetChildMemberWithName() 704 target_sp = m_opaque_sp->GetTargetSP(); in GetChildMemberWithName() 735 ValueImplSP proxy_sp(new ValueImpl(m_opaque_sp->GetRootSP(), use_dynamic, in GetDynamicValue() [all …]
|
H A D | SBInstruction.cpp | 73 : m_opaque_sp(new InstructionImpl(disasm_sp, inst_sp)) {} in SBInstruction() 76 : m_opaque_sp(rhs.m_opaque_sp) { in SBInstruction() 84 m_opaque_sp = rhs.m_opaque_sp; in operator =() 97 return m_opaque_sp && m_opaque_sp->IsValid(); in operator bool() 237 if (m_opaque_sp) in GetOpaque() 238 return m_opaque_sp->GetSP(); in GetOpaque() 245 m_opaque_sp in SetOpaque() [all...] |
H A D | SBModule.cpp | 34 SBModule::SBModule(const lldb::ModuleSP &module_sp) : m_opaque_sp(module_sp) {} in SBModule() 46 SBModule::SBModule(const SBModule &rhs) : m_opaque_sp(rhs.m_opaque_sp) { in SBModule() 55 m_opaque_sp = process_sp->ReadModuleFromMemory(FileSpec(), header_addr); in SBModule() 56 if (m_opaque_sp) { in SBModule() 59 m_opaque_sp->SetLoadAddress(target, 0, true, changed); in SBModule() 60 target.GetImages().Append(m_opaque_sp); in SBModule() 69 m_opaque_sp = rhs.m_opaque_sp; in operator =() 82 return m_opaque_sp in operator bool() [all...] |