Home
last modified time | relevance | path

Searched refs:section_sp (Results 1 – 25 of 49) sorted by relevance

12

/llvm-project-15.0.7/lldb/source/API/
H A DSBSection.cpp32 if (section_sp) in SBSection()
53 return section_sp && section_sp->GetModule().get() != nullptr; in operator bool()
60 if (section_sp) in GetName()
70 if (section_sp) { in GetParent()
97 if (section_sp) in GetNumSubSections()
107 if (section_sp) in GetSubSectionAtIndex()
123 if (section_sp) in GetFileAddress()
134 if (section_sp) in GetLoadAddress()
144 if (section_sp) in GetByteSize()
168 if (section_sp) in GetFileByteSize()
[all …]
/llvm-project-15.0.7/lldb/source/Core/
H A DAddress.cpp254 if (section_sp) { in ResolveAddressUsingFileSections()
286 if (section_sp) in GetModule()
293 if (section_sp) { in GetFileAddress()
313 if (section_sp) { in GetLoadAddress()
832 if (section_sp) { in CalculateSymbolContext()
846 if (section_sp) in CalculateSymbolContextModule()
853 if (section_sp) { in CalculateSymbolContextCompileUnit()
867 if (section_sp) { in CalculateSymbolContextFunction()
881 if (section_sp) { in CalculateSymbolContextBlock()
895 if (section_sp) { in CalculateSymbolContextSymbol()
[all …]
/llvm-project-15.0.7/lldb/source/Plugins/JITLoader/GDB/
H A DJITLoaderGDB.cpp236 if (section_sp) { in updateSectionLoadAddress()
237 if (section_sp->IsFake()) { in updateSectionLoadAddress()
248 section_sp->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()
255 lower = section_sp->GetFileAddress(); in updateSectionLoadAddress()
258 section_sp->SetFileAddress(symbolfile_addr + in updateSectionLoadAddress()
262 uint64_t upper = lower + section_sp->GetByteSize(); in updateSectionLoadAddress()
268 vmaddrheuristic += section_sp->GetByteSize(); in updateSectionLoadAddress()
[all …]
/llvm-project-15.0.7/lldb/source/Target/
H A DSectionLoadList.cpp139 if (section_sp) { in SetSectionUnloaded()
143 ModuleSP module_sp = section_sp->GetModule(); in SetSectionUnloaded()
147 section_sp->GetModule()->GetFileSpec()); in SetSectionUnloaded()
151 static_cast<void *>(section_sp.get()), module_name.c_str(), in SetSectionUnloaded()
152 section_sp->GetName().AsCString()); in SetSectionUnloaded()
158 m_sect_to_addr.find(section_sp.get()); in SetSectionUnloaded()
173 bool SectionLoadList::SetSectionUnloaded(const lldb::SectionSP &section_sp, in SetSectionUnloaded() argument
178 ModuleSP module_sp = section_sp->GetModule(); in SetSectionUnloaded()
188 __FUNCTION__, static_cast<void *>(section_sp.get()), in SetSectionUnloaded()
189 module_name.c_str(), section_sp->GetName().AsCString(), load_addr); in SetSectionUnloaded()
[all …]
H A DSectionLoadHistory.cpp106 const lldb::SectionSP &section_sp) { in GetSectionLoadAddress() argument
111 return section_load_list->GetSectionLoadAddress(section_sp); in GetSectionLoadAddress()
125 uint32_t stop_id, const lldb::SectionSP &section_sp, addr_t load_addr, in SetSectionLoadAddress() argument
131 return section_load_list->SetSectionLoadAddress(section_sp, load_addr, in SetSectionLoadAddress()
137 const lldb::SectionSP &section_sp) { in SetSectionUnloaded() argument
142 return section_load_list->SetSectionUnloaded(section_sp); in SetSectionUnloaded()
146 const lldb::SectionSP &section_sp, in SetSectionUnloaded() argument
152 return section_load_list->SetSectionUnloaded(section_sp, load_addr); in SetSectionUnloaded()
/llvm-project-15.0.7/lldb/include/lldb/Target/
H A DSectionLoadList.h41 lldb::addr_t GetSectionLoadAddress(const lldb::SectionSP &section_sp) const;
46 bool SetSectionLoadAddress(const lldb::SectionSP &section_sp,
53 bool SetSectionUnloaded(const lldb::SectionSP &section_sp,
59 size_t SetSectionUnloaded(const lldb::SectionSP &section_sp);
H A DSectionLoadHistory.h45 const lldb::SectionSP &section_sp);
51 const lldb::SectionSP &section_sp,
58 bool SetSectionUnloaded(uint32_t stop_id, const lldb::SectionSP &section_sp,
65 const lldb::SectionSP &section_sp);
/llvm-project-15.0.7/lldb/source/Plugins/DynamicLoader/Static/
H A DDynamicLoaderStatic.cpp107 SectionSP section_sp(section_list->GetSectionAtIndex(sect_idx)); in LoadAllImagesAtFileAddresses() local
108 if (section_sp) { in LoadAllImagesAtFileAddresses()
114 .GetSectionLoadAddress(section_sp) != in LoadAllImagesAtFileAddresses()
119 section_sp, section_sp->GetFileAddress())) in LoadAllImagesAtFileAddresses()
/llvm-project-15.0.7/lldb/source/Plugins/ObjectFile/JIT/
H A DObjectFileJIT.cpp191 SectionSP section_sp(section_list->GetSectionAtIndex(sect_idx)); in SetLoadAddress() local
192 if (section_sp && section_sp->GetFileSize() > 0 && in SetLoadAddress()
193 !section_sp->IsThreadSpecific()) { in SetLoadAddress()
195 section_sp, section_sp->GetFileAddress() + value)) in SetLoadAddress()
/llvm-project-15.0.7/lldb/include/lldb/Core/
H A DAddress.h140 Address(const lldb::SectionSP &section_sp, lldb::addr_t offset) in Address() argument
144 if (section_sp) in Address()
145 m_section_wp = section_sp; in Address()
463 void SetSection(const lldb::SectionSP &section_sp) { in SetSection() argument
464 m_section_wp = section_sp; in SetSection()
H A DSection.h50 size_t AddSection(const lldb::SectionSP &section_sp);
52 size_t AddUniqueSection(const lldb::SectionSP &section_sp);
80 const lldb::SectionSP &section_sp,
/llvm-project-15.0.7/lldb/source/Plugins/SymbolVendor/PECOFF/
H A DSymbolVendorPECOFF.cpp124 if (SectionSP section_sp = in CreateInstance() local
129 section_sp); in CreateInstance()
131 module_section_list->AddSection(section_sp); in CreateInstance()
/llvm-project-15.0.7/lldb/source/Plugins/SymbolVendor/wasm/
H A DSymbolVendorWasm.cpp123 if (SectionSP section_sp = in CreateInstance() local
128 section_sp); in CreateInstance()
130 module_section_list->AddSection(section_sp); in CreateInstance()
/llvm-project-15.0.7/lldb/source/Plugins/SymbolVendor/ELF/
H A DSymbolVendorELF.cpp128 if (SectionSP section_sp = in CreateInstance() local
133 section_sp); in CreateInstance()
135 module_section_list->AddSection(section_sp); in CreateInstance()
/llvm-project-15.0.7/lldb/unittests/Symbol/
H A DTestDWARFCallFrameInfo.cpp227 auto section_sp = list->FindSectionByType(type == DWARFCallFrameInfo::EH in TestBasic() local
231 ASSERT_NE(nullptr, section_sp); in TestBasic()
233 DWARFCallFrameInfo cfi(*module_sp->GetObjectFile(), section_sp, type); in TestBasic()
/llvm-project-15.0.7/lldb/source/Plugins/SymbolFile/DWARF/
H A DDWARFContext.cpp21 auto section_sp = section_list->FindSectionByType(section_type, true); in LoadSection() local
22 if (!section_sp) in LoadSection()
26 section_sp->GetSectionData(data); in LoadSection()
/llvm-project-15.0.7/lldb/include/lldb/API/
H A DSBSection.h96 SBSection(const lldb::SectionSP &section_sp);
100 void SetSP(const lldb::SectionSP &section_sp);
/llvm-project-15.0.7/lldb/source/Plugins/ObjectFile/wasm/
H A DObjectFileWasm.cpp326 SectionSP section_sp( in CreateSections() local
340 m_sections_up->AddSection(section_sp); in CreateSections()
341 unified_section_list.AddSection(section_sp); in CreateSections()
379 SectionSP section_sp(section_list->GetSectionAtIndex(sect_idx)); in SetLoadAddress() local
381 section_sp, load_address | section_sp->GetFileOffset())) { in SetLoadAddress()
/llvm-project-15.0.7/lldb/source/Breakpoint/
H A DBreakpointResolverAddress.cpp66 SectionSP section_sp = m_addr.GetSection(); in SerializeToStructuredData() local
67 if (section_sp) { in SerializeToStructuredData()
68 ModuleSP module_sp = section_sp->GetModule(); in SerializeToStructuredData()
H A DBreakpoint.cpp534 SectionSP section_sp(section_addr.GetSection()); in ModulesChanged() local
540 if (section_sp && section_sp->GetModule() == module_sp) { in ModulesChanged()
584 SectionSP section_sp(break_loc_sp->GetAddress().GetSection()); in ModulesChanged() local
585 if (section_sp && section_sp->GetModule() == module_sp) { in ModulesChanged()
657 SectionSP section_sp = break_loc_sp->GetAddress().GetSection(); in ModuleReplaced() local
658 if (section_sp && section_sp->GetModule() == old_module_sp) { in ModuleReplaced()
/llvm-project-15.0.7/lldb/source/Plugins/ObjectFile/Breakpad/
H A DObjectFileBreakpad.cpp139 auto section_sp = std::make_shared<Section>( in CreateSections() local
144 m_sections_up->AddSection(section_sp); in CreateSections()
145 unified_section_list.AddSection(section_sp); in CreateSections()
/llvm-project-15.0.7/lldb/source/Symbol/
H A DObjectFile.cpp301 const SectionSP section_sp(symbol->GetAddressRef().GetSection()); in GetAddressClass() local
302 if (section_sp) { in GetAddressClass()
303 const SectionType section_type = section_sp->GetType(); in GetAddressClass()
634 SectionSP section_sp = section_list->GetSectionAtIndex(i); in GetLoadableData() local
636 target.GetSectionLoadList().GetSectionLoadAddress(section_sp); in GetLoadableData()
640 if (section_sp->GetFileSize() == 0) in GetLoadableData()
643 section_sp->GetSectionData(section_data); in GetLoadableData()
/llvm-project-15.0.7/lldb/source/Plugins/DynamicLoader/Hexagon-DYLD/
H A DDynamicLoaderHexagonDYLD.cpp221 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()
/llvm-project-15.0.7/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/
H A DDynamicLoaderDarwin.cpp259 SectionSP section_sp( in UpdateImageLoadAddress() local
269 if (section_sp) { in UpdateImageLoadAddress()
275 section_sp->GetName() != g_section_name_LINKEDIT; in UpdateImageLoadAddress()
278 section_sp, new_section_load_addr, warn_multiple); in UpdateImageLoadAddress()
292 SectionSP section_sp( in UpdateImageLoadAddress() local
295 if (section_sp) { in UpdateImageLoadAddress()
297 if (g_pagezero_section_name == section_sp->GetName()) { in UpdateImageLoadAddress()
331 SectionSP section_sp( in UnloadModuleSections() local
333 if (section_sp) { in UnloadModuleSections()
337 section_sp, old_section_load_addr)) in UnloadModuleSections()
/llvm-project-15.0.7/lldb/source/Plugins/Process/minidump/
H A DProcessMinidump.cpp91 auto section_sp = std::make_shared<Section>( in CreateSections() local
95 section_sp->SetPermissions(ePermissionsReadable | ePermissionsExecutable); in CreateSections()
96 m_sections_up->AddSection(section_sp); in CreateSections()
97 unified_section_list.AddSection(std::move(section_sp)); in CreateSections()
419 SectionSP section_sp = sections->GetSectionAtIndex(i); in BuildMemoryRegions() local
420 addr_t load_addr = load_list.GetSectionLoadAddress(section_sp); in BuildMemoryRegions()
424 section_sp->GetByteSize()); in BuildMemoryRegions()
432 to_add.back().SetLLDBPermissions(section_sp->GetPermissions()); in BuildMemoryRegions()

12