| /freebsd/contrib/llvm-project/lldb/source/API/ |
| H A D | SBSection.cpp | 29 SBSection::SBSection(const lldb::SectionSP §ion_sp) { in SBSection() argument 32 if (section_sp) in SBSection() 33 m_opaque_wp = section_sp; in SBSection() 52 SectionSP section_sp(GetSP()); in operator bool() local 53 return section_sp && section_sp->GetModule().get() != nullptr; in operator bool() 59 SectionSP section_sp(GetSP()); in GetName() local 60 if (section_sp) in GetName() 61 return section_sp->GetName().GetCString(); in GetName() 69 SectionSP section_sp(GetSP()); in GetParent() local 70 if (section_sp) { in GetParent() [all …]
|
| /freebsd/contrib/llvm-project/lldb/source/Core/ |
| H A D | Address.cpp | 252 SectionSP section_sp( in ResolveAddressUsingFileSections() local 254 m_section_wp = section_sp; in ResolveAddressUsingFileSections() 255 if (section_sp) { in ResolveAddressUsingFileSections() 256 assert(section_sp->ContainsFileAddress(file_addr)); in ResolveAddressUsingFileSections() 257 m_offset = file_addr - section_sp->GetFileAddress(); in ResolveAddressUsingFileSections() 275 SectionSP section_sp(GetSection()); in GetModule() local 276 if (section_sp) in GetModule() 277 module_sp = section_sp->GetModule(); in GetModule() 282 SectionSP section_sp(GetSection()); in GetFileAddress() local 283 if (section_sp) { in GetFileAddress() [all …]
|
| H A D | AddressRange.cpp | 229 const auto section_sp = m_base_addr.GetSection(); in GetDescription() local 230 if (section_sp) { in GetDescription() 231 if (const auto object_file = section_sp->GetObjectFile()) in GetDescription()
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/JITLoader/GDB/ |
| H A D | JITLoaderGDB.cpp | 235 SectionSP section_sp(section_list.GetSectionAtIndex(i)); in updateSectionLoadAddress() local 236 if (section_sp) { in updateSectionLoadAddress() 237 if (section_sp->IsFake()) { in updateSectionLoadAddress() 240 updateSectionLoadAddress(section_sp->GetChildren(), target, in updateSectionLoadAddress() 247 const lldb::addr_t slide_amount = lower - section_sp->GetFileAddress(); in updateSectionLoadAddress() 248 section_sp->Slide(slide_amount, false); in updateSectionLoadAddress() 249 section_sp->GetChildren().Slide(-slide_amount, false); in updateSectionLoadAddress() 250 section_sp->SetByteSize(upper - lower); in updateSectionLoadAddress() 252 vmaddrheuristic += 2 << section_sp->GetLog2Align(); in updateSectionLoadAddress() 254 if (section_sp->GetFileAddress() > vmaddrheuristic) in updateSectionLoadAddress() [all …]
|
| /freebsd/contrib/llvm-project/lldb/source/Target/ |
| H A D | SectionLoadList.cpp | 146 size_t SectionLoadList::SetSectionUnloaded(const lldb::SectionSP §ion_sp) { in SetSectionUnloaded() argument 149 if (section_sp) { in SetSectionUnloaded() 153 ModuleSP module_sp = section_sp->GetModule(); in SetSectionUnloaded() 157 section_sp->GetModule()->GetFileSpec()); in SetSectionUnloaded() 161 static_cast<void *>(section_sp.get()), module_name.c_str(), in SetSectionUnloaded() 162 section_sp->GetName().AsCString()); in SetSectionUnloaded() 168 m_sect_to_addr.find(section_sp.get()); in SetSectionUnloaded() 183 bool SectionLoadList::SetSectionUnloaded(const lldb::SectionSP §ion_sp, in SetSectionUnloaded() argument 188 ModuleSP module_sp = section_sp->GetModule(); in SetSectionUnloaded() 191 const FileSpec &module_file_spec(section_sp->GetModule()->GetFileSpec()); in SetSectionUnloaded() [all …]
|
| H A D | SectionLoadHistory.cpp | 106 const lldb::SectionSP §ion_sp) { in GetSectionLoadAddress() argument 111 return section_load_list->GetSectionLoadAddress(section_sp); in GetSectionLoadAddress() 127 uint32_t stop_id, const lldb::SectionSP §ion_sp, addr_t load_addr, in SetSectionLoadAddress() argument 133 return section_load_list->SetSectionLoadAddress(section_sp, load_addr, in SetSectionLoadAddress() 139 const lldb::SectionSP §ion_sp) { in SetSectionUnloaded() argument 144 return section_load_list->SetSectionUnloaded(section_sp); in SetSectionUnloaded() 148 const lldb::SectionSP §ion_sp, in SetSectionUnloaded() argument 154 return section_load_list->SetSectionUnloaded(section_sp, load_addr); in SetSectionUnloaded()
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/ObjectFile/JSON/ |
| H A D | ObjectFileJSON.cpp | 187 SectionSP section_sp; in CreateSections() local 200 section_sp = std::make_shared<Section>( in CreateSections() 206 section_sp = std::make_shared<Section>( in CreateSections() 219 section_sp->SetPermissions(permissions); in CreateSections() 220 section_sp->SetIsFake(section.fake.value_or(false)); in CreateSections() 221 section_sp->SetIsEncrypted(section.encrypted.value_or(false)); in CreateSections() 222 section_sp->SetIsThreadSpecific(section.thread_specific.value_or(false)); in CreateSections() 223 return section_sp; in CreateSections() 225 auto section_sp = make_section(json_section); in CreateSections() local 227 SectionSP subsection_sp = make_section(subsection, section_sp); in CreateSections() [all …]
|
| /freebsd/contrib/llvm-project/lldb/include/lldb/Target/ |
| H A D | SectionLoadList.h | 41 lldb::addr_t GetSectionLoadAddress(const lldb::SectionSP §ion_sp) const; 46 bool SetSectionLoadAddress(const lldb::SectionSP §ion_sp, 53 bool SetSectionUnloaded(const lldb::SectionSP §ion_sp, 59 size_t SetSectionUnloaded(const lldb::SectionSP §ion_sp);
|
| H A D | SectionLoadHistory.h | 45 const lldb::SectionSP §ion_sp); 51 const lldb::SectionSP §ion_sp, 58 bool SetSectionUnloaded(uint32_t stop_id, const lldb::SectionSP §ion_sp, 65 const lldb::SectionSP §ion_sp);
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/ObjectFile/Placeholder/ |
| H A D | ObjectFilePlaceholder.cpp | 39 auto section_sp = std::make_shared<lldb_private::Section>( in CreateSections() local 44 section_sp->SetPermissions(ePermissionsReadable | ePermissionsExecutable); in CreateSections() 45 m_sections_up->AddSection(section_sp); in CreateSections() 46 unified_section_list.AddSection(std::move(section_sp)); in CreateSections()
|
| /freebsd/contrib/llvm-project/lldb/source/Expression/ |
| H A D | ObjectFileJIT.cpp | 178 SectionSP section_sp(section_list->GetSectionAtIndex(sect_idx)); in SetLoadAddress() local 179 if (section_sp && section_sp->GetFileSize() > 0 && in SetLoadAddress() 180 !section_sp->IsThreadSpecific()) { in SetLoadAddress() 181 if (target.SetSectionLoadAddress(section_sp, in SetLoadAddress() 182 section_sp->GetFileAddress() + value)) in SetLoadAddress()
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/ObjectFile/XCOFF/ |
| H A D | ObjectFileXCOFF.cpp | 265 lldb::SectionSP section_sp = in ParseSymtab() local 267 if (!section_sp || section_sp->GetFileAddress() == LLDB_INVALID_ADDRESS) in ParseSymtab() 270 lldb::addr_t file_addr = section_sp->GetFileAddress(); in ParseSymtab() 275 symbol.GetAddressRef() = Address(section_sp, symbolValue - file_addr); in ParseSymtab() 346 SectionSP section_sp(new Section( in CreateSectionsWithBitness() local 357 section_sp->SetPermissions(permissions); in CreateSectionsWithBitness() 358 m_sections_up->AddSection(section_sp); in CreateSectionsWithBitness() 359 unified_section_list.AddSection(section_sp); in CreateSectionsWithBitness()
|
| /freebsd/contrib/llvm-project/lldb/include/lldb/Core/ |
| H A D | Address.h | 143 Address(const lldb::SectionSP §ion_sp, lldb::addr_t offset) in Address() argument 147 if (section_sp) in Address() 148 m_section_wp = section_sp; in Address() 466 void SetSection(const lldb::SectionSP §ion_sp) { in SetSection() argument 467 m_section_wp = section_sp; in SetSection()
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/DynamicLoader/Static/ |
| H A D | DynamicLoaderStatic.cpp | 104 SectionSP section_sp(section_list->GetSectionAtIndex(sect_idx)); in LoadAllImagesAtFileAddresses() local 105 if (section_sp) { in LoadAllImagesAtFileAddresses() 106 if (target.GetSectionLoadAddress(section_sp) != in LoadAllImagesAtFileAddresses()
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolVendor/PECOFF/ |
| H A D | SymbolVendorPECOFF.cpp | 121 if (SectionSP section_sp = in CreateInstance() local 126 section_sp); in CreateInstance() 128 module_section_list->AddSection(section_sp); in CreateInstance()
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolVendor/wasm/ |
| H A D | SymbolVendorWasm.cpp | 126 if (SectionSP section_sp = in CreateInstance() local 131 section_sp); in CreateInstance() 133 module_section_list->AddSection(section_sp); in CreateInstance()
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/ |
| H A D | DWARFContext.cpp | 23 auto section_sp = section_list->FindSectionByType(section_type, true); in LoadSection() 24 if (!section_sp) in LoadSection() 28 section_sp->GetSectionData(data); in LoadSection() 22 auto section_sp = section_list->FindSectionByType(section_type, true); LoadSection() local
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolVendor/ELF/ |
| H A D | SymbolVendorELF.cpp | 159 if (SectionSP section_sp = in CreateInstance() local 164 section_sp); in CreateInstance() 166 module_section_list->AddSection(section_sp); in CreateInstance()
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/ObjectFile/wasm/ |
| H A D | ObjectFileWasm.cpp | 297 SectionSP section_sp( in CreateSections() local 311 m_sections_up->AddSection(section_sp); in CreateSections() 312 unified_section_list.AddSection(section_sp); in CreateSections() 350 SectionSP section_sp(section_list->GetSectionAtIndex(sect_idx)); in SetLoadAddress() local 352 section_sp, load_address | section_sp->GetFileOffset())) { in SetLoadAddress()
|
| /freebsd/contrib/llvm-project/lldb/include/lldb/API/ |
| H A D | SBSection.h | 96 SBSection(const lldb::SectionSP §ion_sp); 100 void SetSP(const lldb::SectionSP §ion_sp);
|
| /freebsd/contrib/llvm-project/lldb/source/Breakpoint/ |
| H A D | BreakpointResolverAddress.cpp | 68 SectionSP section_sp = m_addr.GetSection(); in SerializeToStructuredData() local 69 if (section_sp) { in SerializeToStructuredData() 70 if (ModuleSP module_sp = section_sp->GetModule()) { in SerializeToStructuredData()
|
| /freebsd/contrib/llvm-project/lldb/source/DataFormatters/ |
| H A D | FormatterSection.cpp | 24 auto section_sp = sections->FindSectionByType(section_type, true); in ForEachFormatterInModule() local 25 if (!section_sp) in ForEachFormatterInModule() 47 auto section_size = section_sp->GetSectionData(lldb_extractor); in ForEachFormatterInModule()
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/ObjectFile/Breakpad/ |
| H A D | ObjectFileBreakpad.cpp | 140 auto section_sp = std::make_shared<Section>( in CreateSections() local 145 m_sections_up->AddSection(section_sp); in CreateSections() 146 unified_section_list.AddSection(section_sp); in CreateSections()
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/DynamicLoader/Hexagon-DYLD/ |
| H A D | DynamicLoaderHexagonDYLD.cpp | 221 SectionSP section_sp(sections->GetSectionAtIndex(i)); in UpdateLoadedSections() local 222 lldb::addr_t new_load_addr = section_sp->GetFileAddress() + base_addr; in UpdateLoadedSections() 234 target.SetSectionLoadAddress(section_sp, new_load_addr); in UpdateLoadedSections() 251 SectionSP section_sp(sections->GetSectionAtIndex(i)); in UnloadSections() local 252 target.SetSectionUnloaded(section_sp); in UnloadSections()
|
| /freebsd/contrib/llvm-project/lldb/source/Symbol/ |
| H A D | ObjectFile.cpp | 310 const SectionSP section_sp(symbol->GetAddressRef().GetSection()); in GetAddressClass() local 311 if (section_sp) { in GetAddressClass() 312 const SectionType section_type = section_sp->GetType(); in GetAddressClass() 683 SectionSP section_sp = section_list->GetSectionAtIndex(i); in GetLoadableData() local 684 loadable.Dest = target.GetSectionLoadAddress(section_sp); in GetLoadableData() 688 if (section_sp->GetFileSize() == 0) in GetLoadableData() 691 section_sp->GetSectionData(section_data); in GetLoadableData()
|