Lines Matching defs:section

44 SectionLoadList::GetSectionLoadAddress (const lldb::SectionSP &section) const
46 // TODO: add support for the same section having multiple load addresses
48 if (section)
51 sect_to_addr_collection::const_iterator pos = m_sect_to_addr.find (section.get());
60 SectionLoadList::SetSectionLoadAddress (const lldb::SectionSP &section, addr_t load_addr, bool warn_multiple)
66 const FileSpec &module_file_spec (section->GetModule()->GetFileSpec());
67 log->Printf ("SectionLoadList::%s (section = %p (%s.%s), load_addr = 0x%16.16" PRIx64 ")",
69 section.get(),
71 section->GetName().AsCString(),
75 if (section->GetByteSize() == 0)
78 // Fill in the section -> load_addr map
80 sect_to_addr_collection::iterator sta_pos = m_sect_to_addr.find(section.get());
89 m_sect_to_addr[section.get()] = load_addr;
91 // Fill in the load_addr -> section map
96 // we have multiple load addresses that correspond to a section, we will
97 // allways attribute the section to the be last section that claims it
98 // exists at that address. Sometimes it is ok for more that one section
105 if (warn_multiple && section != ats_pos->second)
107 ModuleSP module_sp (section->GetModule());
113 module_sp->ReportWarning ("address 0x%16.16" PRIx64 " maps to more than one section: %s.%s and %s.%s",
116 section->GetName().GetCString(),
122 ats_pos->second = section;
125 m_addr_to_sect[load_addr] = section;
142 log->Printf ("SectionLoadList::%s (section = %p (%s.%s))",
174 log->Printf ("SectionLoadList::%s (section = %p (%s.%s), load_addr = 0x%16.16" PRIx64 ")",
204 // First find the top level section that this load address exists in
219 // We have found the top level section, now we need to find the
220 // deepest child section.
235 // We have found the top level section, now we need to find the
236 // deepest child section.
253 s.Printf("addr = 0x%16.16" PRIx64 ", section = %p: ", pos->first, pos->second.get());