Lines Matching full:lldb
12 #include "lldb/Core/ModuleChild.h"
13 #include "lldb/Utility/ConstString.h"
14 #include "lldb/Utility/Flags.h"
15 #include "lldb/Utility/UserID.h"
16 #include "lldb/lldb-defines.h"
17 #include "lldb/lldb-enumerations.h"
18 #include "lldb/lldb-forward.h"
19 #include "lldb/lldb-types.h"
37 typedef std::vector<lldb::SectionSP> collection;
51 size_t AddSection(const lldb::SectionSP §ion_sp);
53 size_t AddUniqueSection(const lldb::SectionSP §ion_sp);
57 bool ContainsSection(lldb::user_id_t sect_id) const;
62 lldb::SectionSP FindSectionByName(ConstString section_dstr) const;
64 lldb::SectionSP FindSectionByID(lldb::user_id_t sect_id) const;
66 lldb::SectionSP FindSectionByType(lldb::SectionType sect_type,
70 lldb::SectionSP
71 FindSectionContainingFileAddress(lldb::addr_t addr,
80 bool ReplaceSection(lldb::user_id_t sect_id,
81 const lldb::SectionSP §ion_sp,
87 lldb::SectionSP GetSectionAtIndex(size_t idx) const;
89 size_t Slide(lldb::addr_t slide_amount, bool slide_children);
105 std::optional<lldb::SectionType> type;
116 Section(const lldb::ModuleSP &module_sp, ObjectFile *obj_file,
117 lldb::user_id_t sect_id, ConstString name,
118 lldb::SectionType sect_type, lldb::addr_t file_vm_addr,
119 lldb::addr_t vm_size, lldb::offset_t file_offset,
120 lldb::offset_t file_size, uint32_t log2align, uint32_t flags,
124 Section(const lldb::SectionSP &parent_section_sp, // NULL for top level
127 const lldb::ModuleSP &module_sp, ObjectFile *obj_file,
128 lldb::user_id_t sect_id, ConstString name,
129 lldb::SectionType sect_type, lldb::addr_t file_vm_addr,
130 lldb::addr_t vm_size, lldb::offset_t file_offset,
131 lldb::offset_t file_size, uint32_t log2align, uint32_t flags,
138 bool ContainsFileAddress(lldb::addr_t vm_addr) const;
149 lldb::addr_t GetLoadBaseAddress(Target *target) const;
151 bool ResolveContainedAddress(lldb::addr_t offset, Address &so_addr,
154 lldb::offset_t GetFileOffset() const { return m_file_offset; } in GetFileOffset()
156 void SetFileOffset(lldb::offset_t file_offset) { in SetFileOffset()
160 lldb::offset_t GetFileSize() const { return m_file_size; } in GetFileSize()
162 void SetFileSize(lldb::offset_t file_size) { m_file_size = file_size; } in SetFileSize()
164 lldb::addr_t GetFileAddress() const;
166 bool SetFileAddress(lldb::addr_t file_addr);
168 lldb::addr_t GetOffset() const;
170 lldb::addr_t GetByteSize() const { return m_byte_size; } in GetByteSize()
172 void SetByteSize(lldb::addr_t byte_size) { m_byte_size = byte_size; } in SetByteSize()
186 bool Slide(lldb::addr_t slide_amount, bool slide_children);
188 lldb::SectionType GetType() const { return m_type; } in GetType()
192 lldb::SectionSP GetParent() const { return m_parent_wp.lock(); } in GetParent()
198 /// Get the permissions as OR'ed bits from lldb::Permissions
201 /// Set the permissions using bits OR'ed from lldb::Permissions
224 lldb::offset_t GetSectionData(void *dst, lldb::offset_t dst_len,
225 lldb::offset_t offset = 0);
240 lldb::offset_t GetSectionData(DataExtractor &data);
263 lldb::SectionType m_type; // The type of this section
264 lldb::SectionWP m_parent_wp; // Weak pointer to parent section
266 lldb::addr_t m_file_addr; // The absolute file virtual address range of this
269 lldb::addr_t m_byte_size; // Size in bytes that this section will occupy in
271 lldb::offset_t m_file_offset; // Object file offset (if any)
272 lldb::offset_t m_file_size; // Object file size (can be smaller than
304 bool fromJSON(const llvm::json::Value &value, lldb::SectionType &type,