LLDB mainline
ObjectFileMachO.h
Go to the documentation of this file.
1//===-- ObjectFileMachO.h ---------------------------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLDB_SOURCE_PLUGINS_OBJECTFILE_MACH_O_OBJECTFILEMACHO_H
10#define LLDB_SOURCE_PLUGINS_OBJECTFILE_MACH_O_OBJECTFILEMACHO_H
11
12#include "lldb/Core/Address.h"
13#include "lldb/Host/SafeMachO.h"
20#include "lldb/Utility/UUID.h"
21#include <optional>
22
23// This class needs to be hidden as eventually belongs in a plugin that
24// will export the ObjectFile protocol
26public:
27 ObjectFileMachO(const lldb::ModuleSP &module_sp,
28 lldb::DataExtractorSP extractor_sp,
29 lldb::offset_t data_offset,
30 const lldb_private::FileSpec *file, lldb::offset_t offset,
31 lldb::offset_t length);
32
33 ObjectFileMachO(const lldb::ModuleSP &module_sp,
35 const lldb::ProcessSP &process_sp, lldb::addr_t header_addr);
36
37 ~ObjectFileMachO() override = default;
38
39 // Static Functions
40 static void Initialize();
41
42 static void Terminate();
43
44 static llvm::StringRef GetPluginNameStatic() { return "mach-o"; }
45
46 static llvm::StringRef GetPluginDescriptionStatic() {
47 return "Mach-o object file reader (32 and 64 bit)";
48 }
49
51 CreateInstance(const lldb::ModuleSP &module_sp,
52 lldb::DataExtractorSP extractor_sp, lldb::offset_t data_offset,
53 const lldb_private::FileSpec *file, lldb::offset_t file_offset,
54 lldb::offset_t length);
55
57 const lldb::ModuleSP &module_sp, lldb::WritableDataBufferSP data_sp,
58 const lldb::ProcessSP &process_sp, lldb::addr_t header_addr);
59
60 static size_t GetModuleSpecifications(const lldb_private::FileSpec &file,
61 lldb::DataBufferSP &data_sp,
62 lldb::offset_t data_offset,
63 lldb::offset_t file_offset,
64 lldb::offset_t length,
66
67 static bool SaveCore(const lldb::ProcessSP &process_sp,
70
71 static bool MagicBytesMatch(lldb::DataBufferSP data_sp, lldb::addr_t offset,
72 lldb::addr_t length);
73
74 // LLVM RTTI support
75 static char ID;
76 bool isA(const void *ClassID) const override {
77 return ClassID == &ID || ObjectFile::isA(ClassID);
78 }
79 static bool classof(const ObjectFile *obj) { return obj->isA(&ID); }
80
81 // Member Functions
82 bool ParseHeader() override;
83
85 bool value_is_offset) override;
86
87 lldb::ByteOrder GetByteOrder() const override;
88
89 bool IsExecutable() const override;
90
91 bool IsDynamicLoader() const;
92
93 bool IsSharedCacheBinary() const;
94
95 bool IsKext() const;
96
97 uint32_t GetAddressByteSize() const override;
98
100
101 void ParseSymtab(lldb_private::Symtab &symtab) override;
102
103 bool IsStripped() override;
104
105 void CreateSections(lldb_private::SectionList &unified_section_list) override;
106
107 void Dump(lldb_private::Stream *s) override;
108
110
111 lldb_private::UUID GetUUID() override;
112
113 uint32_t GetDependentModules(lldb_private::FileSpecList &files) override;
114
118
120
122
123 uint32_t GetNumThreadContexts() override;
124
125 std::vector<std::tuple<lldb::offset_t, lldb::offset_t>>
126 FindLC_NOTEByName(std::string name);
127
128 std::string GetIdentifierString() override;
129
131
132 bool GetCorefileMainBinaryInfo(lldb::addr_t &value, bool &value_is_offset,
133 lldb_private::UUID &uuid,
134 ObjectFile::BinaryType &type) override;
135
136 bool GetCorefileThreadExtraInfos(std::vector<lldb::tid_t> &tids) override;
137
139
140 bool LoadCoreFileImages(lldb_private::Process &process) override;
141
143 GetThreadContextAtIndex(uint32_t idx, lldb_private::Thread &thread) override;
144
145 ObjectFile::Type CalculateType() override;
146
147 ObjectFile::Strata CalculateStrata() override;
148
149 llvm::VersionTuple GetVersion() override;
150
151 llvm::VersionTuple GetMinimumOSVersion() override;
152
153 llvm::VersionTuple GetSDKVersion() override;
154
155 bool GetIsDynamicLinkEditor() override;
156
157 bool CanTrustAddressRanges() override;
158
160 lldb::offset_t *data_offset_ptr,
161 llvm::MachO::mach_header &header);
162
163 bool AllowAssemblyEmulationUnwindPlans() override;
164
166
167 bool IsGOTSection(const lldb_private::Section &section) const override;
168
169 // PluginInterface protocol
170 llvm::StringRef GetPluginName() override { return GetPluginNameStatic(); }
171
172protected:
173 static lldb_private::UUID
174 GetUUID(const llvm::MachO::mach_header &header,
175 const lldb_private::DataExtractor &data,
176 lldb::offset_t lc_offset); // Offset to the first load command
177
179 lldb::ModuleSP module_sp, const llvm::MachO::mach_header &header,
180 const lldb_private::DataExtractor &data, lldb::offset_t lc_offset);
181
182 /// Enumerate all ArchSpecs supported by this Mach-O file.
183 ///
184 /// On macOS one Mach-O slice can contain multiple load commands:
185 /// One load command for being loaded into a macOS process and one
186 /// load command for being loaded into a macCatalyst process. In
187 /// contrast to ObjectContainerUniversalMachO, this is the same
188 /// binary that can be loaded into different contexts.
189 static void GetAllArchSpecs(const llvm::MachO::mach_header &header,
190 const lldb_private::DataExtractor &data,
191 lldb::offset_t lc_offset,
192 lldb_private::ModuleSpec &base_spec,
194
195 /// Intended for same-host arm device debugging where lldb needs to
196 /// detect libraries in the shared cache and augment the nlist entries
197 /// with an on-disk dyld_shared_cache file. The process will record
198 /// the shared cache UUID so the on-disk cache can be matched or rejected
199 /// correctly.
201 lldb::addr_t &base_addr,
202 lldb_private::UUID &uuid);
203
204 /// Intended for same-host arm device debugging where lldb will read
205 /// shared cache libraries out of its own memory instead of the remote
206 /// process' memory as an optimization. If lldb's shared cache UUID
207 /// does not match the process' shared cache UUID, this optimization
208 /// should not be used.
210
212 lldb::addr_t mach_header_load_address,
213 const lldb_private::Section *mach_header_section,
214 const lldb_private::Section *section);
215
218 const lldb::ByteOrder byte_order,
219 const uint32_t addr_byte_size);
220
221 size_t ParseSymtab();
222
225
227 void ProcessDysymtabCommand(const llvm::MachO::load_command &load_cmd,
228 lldb::offset_t offset);
229 void ProcessSegmentCommand(const llvm::MachO::load_command &load_cmd,
230 lldb::offset_t offset, uint32_t cmd_idx,
231 SegmentParsingContext &context);
232 void SanitizeSegmentCommand(llvm::MachO::segment_command_64 &seg_cmd,
233 uint32_t cmd_idx);
234
235 bool SectionIsLoadable(const lldb_private::Section *section);
236
237 /// A corefile may include metadata about all of the binaries that were
238 /// present in the process when the corefile was taken. This is only
239 /// implemented for Mach-O files for now; we'll generalize it when we
240 /// have other systems that can include the same.
242 std::string filename;
247 std::vector<std::tuple<lldb_private::ConstString, lldb::addr_t>>
249 };
250
251 struct LCNoteEntry {
252 LCNoteEntry(uint32_t addr_byte_size, lldb::ByteOrder byte_order)
253 : payload(lldb_private::Stream::eBinary, addr_byte_size, byte_order) {}
254
255 std::string name;
258 };
259
261 std::vector<MachOCorefileImageEntry> all_image_infos;
262 bool IsValid() { return all_image_infos.size() > 0; }
263 };
264
265 // The LC_SYMTAB's symtab_command structure uses 32-bit file offsets
266 // for two fields, but ObjectFileMachO needs to calculate the offsets
267 // in virtual address layout from the start of the TEXT segment, and
268 // that span may be larger than 4GB.
271 SymtabCommandLargeOffsets(const llvm::MachO::symtab_command &in)
272 : cmd(in.cmd), cmdsize(in.cmdsize), symoff(in.symoff), nsyms(in.nsyms),
273 stroff(in.stroff), strsize(in.strsize) {}
274 void operator=(const llvm::MachO::symtab_command &in) {
275 cmd = in.cmd;
276 cmdsize = in.cmdsize;
277 symoff = in.symoff;
278 nsyms = in.nsyms;
279 stroff = in.stroff;
280 strsize = in.strsize;
281 }
282 uint32_t cmd = 0; /* LC_SYMTAB */
283 uint32_t cmdsize = 0; /* sizeof(struct symtab_command) */
284 lldb::offset_t symoff = 0; /* symbol table offset */
285 uint32_t nsyms = 0; /* number of symbol table entries */
286 lldb::offset_t stroff = 0; /* string table offset */
287 uint32_t strsize = 0; /* string table size in bytes */
288 };
289
290 // The LC_DYLD_INFO's dyld_info_command has 32-bit file offsets
291 // that we will use as virtual address offsets, and may need to span
292 // more than 4GB in virtual memory.
302
303 void operator=(const llvm::MachO::dyld_info_command &in) {
304 cmd = in.cmd;
305 cmdsize = in.cmdsize;
306 rebase_off = in.rebase_off;
307 rebase_size = in.rebase_size;
308 bind_off = in.bind_off;
309 bind_size = in.bind_size;
310 weak_bind_off = in.weak_bind_off;
311 weak_bind_size = in.weak_bind_size;
312 lazy_bind_off = in.lazy_bind_off;
313 lazy_bind_size = in.lazy_bind_size;
314 export_off = in.export_off;
315 export_size = in.export_size;
316 };
317
318 /// LC_DYLD_INFO or LC_DYLD_INFO_ONLY
319 uint32_t cmd = 0;
320 uint32_t cmdsize = 0; /* sizeof(struct dyld_info_command) */
321 lldb::offset_t rebase_off = 0; /* file offset to rebase info */
322 uint32_t rebase_size = 0; /* size of rebase info */
323 lldb::offset_t bind_off = 0; /* file offset to binding info */
324 uint32_t bind_size = 0; /* size of binding info */
325 lldb::offset_t weak_bind_off = 0; /* file offset to weak binding info */
326 uint32_t weak_bind_size = 0; /* size of weak binding info */
327 lldb::offset_t lazy_bind_off = 0; /* file offset to lazy binding info */
328 uint32_t lazy_bind_size = 0; /* size of lazy binding infs */
329 lldb::offset_t export_off = 0; /* file offset to lazy binding info */
330 uint32_t export_size = 0; /* size of lazy binding infs */
331 };
332
333 /// The LC_DYSYMTAB's dysymtab_command has 32-bit file offsets
334 /// that we will use as virtual address offsets, and may need to span
335 /// more than 4GB in virtual memory.
348
349 void operator=(const llvm::MachO::dysymtab_command &in) {
350 cmd = in.cmd;
351 cmdsize = in.cmdsize;
352 ilocalsym = in.ilocalsym;
353 nlocalsym = in.nlocalsym;
354 iextdefsym = in.iextdefsym;
355 nextdefsym = in.nextdefsym;
356 iundefsym = in.iundefsym;
357 nundefsym = in.nundefsym;
358 tocoff = in.tocoff;
359 ntoc = in.ntoc;
360 modtaboff = in.modtaboff;
361 nmodtab = in.nmodtab;
362 extrefsymoff = in.extrefsymoff;
363 nextrefsyms = in.nextrefsyms;
364 indirectsymoff = in.indirectsymoff;
365 nindirectsyms = in.nindirectsyms;
366 extreloff = in.extreloff;
367 nextrel = in.nextrel;
368 locreloff = in.locreloff;
369 nlocrel = in.nlocrel;
370 };
371
372 uint32_t cmd = 0; /* LC_DYSYMTAB */
373 uint32_t cmdsize = 0; /* sizeof(struct dysymtab_command) */
374 uint32_t ilocalsym = 0; /* index to local symbols */
375 uint32_t nlocalsym = 0; /* number of local symbols */
376 uint32_t iextdefsym = 0; /* index to externally defined symbols */
377 uint32_t nextdefsym = 0; /* number of externally defined symbols */
378 uint32_t iundefsym = 0; /* index to undefined symbols */
379 uint32_t nundefsym = 0; /* number of undefined symbols */
380 lldb::offset_t tocoff = 0; /* file offset to table of contents */
381 uint32_t ntoc = 0; /* number of entries in table of contents */
382 lldb::offset_t modtaboff = 0; /* file offset to module table */
383 uint32_t nmodtab = 0; /* number of module table entries */
384 lldb::offset_t extrefsymoff = 0; /* offset to referenced symbol table */
385 uint32_t nextrefsyms = 0; /* number of referenced symbol table entries */
387 0; /* file offset to the indirect symbol table */
388 uint32_t nindirectsyms = 0; /* number of indirect symbol table entries */
389 lldb::offset_t extreloff = 0; /* offset to external relocation entries */
390 uint32_t nextrel = 0; /* number of external relocation entries */
391 lldb::offset_t locreloff = 0; /* offset to local relocation entries */
392 uint32_t nlocrel = 0; /* number of local relocation entries */
393 };
394
395 // The linkedit_data_command is used in several load commands including
396 // LC_FUNCTION_STARTS and LC_DYLD_EXPORTS_TRIE. It has a 32-bit file offset
397 // that may need to span more than 4GB in real virtual addresses.
401 const llvm::MachO::linkedit_data_command &in)
402 : cmd(in.cmd), cmdsize(in.cmdsize), dataoff(in.dataoff),
403 datasize(in.datasize) {}
404 void operator=(const llvm::MachO::linkedit_data_command &in) {
405 cmd = in.cmd;
406 cmdsize = in.cmdsize;
407 dataoff = in.dataoff;
408 datasize = in.datasize;
409 }
410 uint32_t cmd = 0; /* LC_FUNCTION_STARTS, LC_DYLD_EXPORTS_TRIE, etc */
411 uint32_t cmdsize = 0; /* sizeof(struct linkedit_data_command) */
412 lldb::offset_t dataoff = 0; /* file offset of data in __LINKEDIT segment */
413 uint32_t datasize = 0; /* file size of data in __LINKEDIT segment */
414 };
415
416 /// Get the list of binary images that were present in the process
417 /// when the corefile was produced.
418 /// \return
419 /// The MachOCorefileAllImageInfos object returned will have
420 /// IsValid() == false if the information is unavailable.
422
423 llvm::MachO::mach_header m_header;
434
435 llvm::MachO::dysymtab_command m_dysymtab;
436 std::vector<llvm::MachO::section_64> m_mach_sections;
437 std::optional<llvm::VersionTuple> m_min_os_version;
438 std::optional<llvm::VersionTuple> m_sdk_versions;
447};
448
449#endif // LLDB_SOURCE_PLUGINS_OBJECTFILE_MACH_O_OBJECTFILEMACHO_H
static llvm::raw_ostream & error(Stream &strm)
bool SectionIsLoadable(const lldb_private::Section *section)
llvm::MachO::mach_header m_header
bool m_allow_assembly_emulation_unwind_plans
std::optional< llvm::VersionTuple > m_min_os_version
lldb_private::UUID GetSharedCacheUUID(lldb_private::FileSpec dyld_shared_cache, const lldb::ByteOrder byte_order, const uint32_t addr_byte_size)
lldb_private::AddressableBits GetAddressableBits() override
Some object files may have the number of bits used for addressing embedded in them,...
uint32_t GetDependentModules(lldb_private::FileSpecList &files) override
Extract the dependent modules from an object file.
static lldb_private::ObjectFile * CreateMemoryInstance(const lldb::ModuleSP &module_sp, lldb::WritableDataBufferSP data_sp, const lldb::ProcessSP &process_sp, lldb::addr_t header_addr)
FileRangeArray m_thread_context_offsets
lldb_private::RangeVector< uint32_t, uint32_t > FileRangeArray
ObjectFile::Type CalculateType() override
The object file should be able to calculate its type by looking at its file header and possibly the s...
lldb_private::RangeVector< uint32_t, uint32_t, 8 > EncryptedFileRanges
static lldb_private::ConstString GetSegmentNameLINKEDIT()
~ObjectFileMachO() override=default
std::vector< std::tuple< lldb::offset_t, lldb::offset_t > > FindLC_NOTEByName(std::string name)
void Dump(lldb_private::Stream *s) override
Dump a description of this object to a Stream.
bool AllowAssemblyEmulationUnwindPlans() override
Returns if the function bounds for symbols in this symbol file are likely accurate.
std::string GetIdentifierString() override
Some object files may have an identifier string embedded in them, e.g.
void ProcessSegmentCommand(const llvm::MachO::load_command &load_cmd, lldb::offset_t offset, uint32_t cmd_idx, SegmentParsingContext &context)
std::vector< llvm::MachO::section_64 > m_mach_sections
bool SetLoadAddress(lldb_private::Target &target, lldb::addr_t value, bool value_is_offset) override
Sets the load address for an entire module, assuming a rigid slide of sections, if possible in the im...
void GetProcessSharedCacheUUID(lldb_private::Process *, lldb::addr_t &base_addr, lldb_private::UUID &uuid)
Intended for same-host arm device debugging where lldb needs to detect libraries in the shared cache ...
bool IsGOTSection(const lldb_private::Section &section) const override
Returns true if the section is a global offset table section.
llvm::StringRef GetPluginName() override
bool GetIsDynamicLinkEditor() override
Return true if this file is a dynamic link editor (dyld)
lldb::ByteOrder GetByteOrder() const override
Gets whether endian swapping should occur when extracting data from this object file.
bool ParseHeader() override
Attempts to parse the object header.
static lldb_private::ConstString GetSegmentNameDATA_DIRTY()
bool IsStripped() override
Detect if this object file has been stripped of local symbols.
static lldb_private::ConstString GetSegmentNameTEXT()
bool isA(const void *ClassID) const override
lldb_private::UUID GetUUID() override
Gets the UUID for this object file.
llvm::VersionTuple GetMinimumOSVersion() override
Get the minimum OS version this object file can run on.
static llvm::StringRef GetPluginDescriptionStatic()
static lldb_private::ConstString GetSegmentNameOBJC()
static llvm::StringRef GetPluginNameStatic()
lldb::RegisterContextSP GetThreadContextAtIndex(uint32_t idx, lldb_private::Thread &thread) override
static bool MagicBytesMatch(lldb::DataBufferSP data_sp, lldb::addr_t offset, lldb::addr_t length)
lldb_private::FileSpecList m_reexported_dylibs
static void GetAllArchSpecs(const llvm::MachO::mach_header &header, const lldb_private::DataExtractor &data, lldb::offset_t lc_offset, lldb_private::ModuleSpec &base_spec, lldb_private::ModuleSpecList &all_specs)
Enumerate all ArchSpecs supported by this Mach-O file.
static bool classof(const ObjectFile *obj)
bool GetCorefileThreadExtraInfos(std::vector< lldb::tid_t > &tids) override
Get metadata about thread ids from the corefile.
bool IsDynamicLoader() const
static lldb_private::ConstString GetSegmentNameDWARF()
static void Terminate()
bool IsExecutable() const override
Tells whether this object file is capable of being the main executable for a process.
lldb_private::Address GetEntryPointAddress() override
Returns the address of the Entry Point in this object file - if the object file doesn't have an entry...
lldb_private::Address m_entry_point_address
static void Initialize()
bool LoadCoreFileImages(lldb_private::Process &process) override
Load binaries listed in a corefile.
bool CanTrustAddressRanges() override
Can we trust the address ranges accelerator associated with this object file to be complete.
void SanitizeSegmentCommand(llvm::MachO::segment_command_64 &seg_cmd, uint32_t cmd_idx)
static lldb_private::ObjectFile * CreateInstance(const lldb::ModuleSP &module_sp, lldb::DataExtractorSP extractor_sp, lldb::offset_t data_offset, const lldb_private::FileSpec *file, lldb::offset_t file_offset, lldb::offset_t length)
bool IsSharedCacheBinary() const
llvm::VersionTuple GetSDKVersion() override
Get the SDK OS version this object file was built with.
lldb_private::ArchSpec GetArchitecture() override
Get the ArchSpec for this object file.
static lldb_private::ConstString GetSegmentNameDATA()
lldb_private::FileSpecList GetReExportedLibraries() override
Gets the file spec list of libraries re-exported by this object file.
lldb_private::Address GetBaseAddress() override
Returns base address of this object file.
size_t ParseSymtab()
static size_t GetModuleSpecifications(const lldb_private::FileSpec &file, lldb::DataBufferSP &data_sp, lldb::offset_t data_offset, lldb::offset_t file_offset, lldb::offset_t length, lldb_private::ModuleSpecList &specs)
lldb::addr_t m_text_address
uint32_t GetAddressByteSize() const override
Gets the address size in bytes for the current object file.
llvm::MachO::dysymtab_command m_dysymtab
bool GetCorefileMainBinaryInfo(lldb::addr_t &value, bool &value_is_offset, lldb_private::UUID &uuid, ObjectFile::BinaryType &type) override
static bool SaveCore(const lldb::ProcessSP &process_sp, lldb_private::SaveCoreOptions &options, lldb_private::Status &error)
void ProcessDysymtabCommand(const llvm::MachO::load_command &load_cmd, lldb::offset_t offset)
MachOCorefileAllImageInfos GetCorefileAllImageInfos()
Get the list of binary images that were present in the process when the corefile was produced.
lldb::addr_t CalculateSectionLoadAddressForMemoryImage(lldb::addr_t mach_header_load_address, const lldb_private::Section *mach_header_section, const lldb_private::Section *section)
static lldb_private::ConstString GetSegmentNameLLVM_COV()
bool m_thread_context_offsets_valid
ObjectFile::Strata CalculateStrata() override
The object file should be able to calculate the strata of the object file.
void CreateSections(lldb_private::SectionList &unified_section_list) override
static lldb_private::ConstString GetSegmentNameDATA_CONST()
lldb_private::AddressClass GetAddressClass(lldb::addr_t file_addr) override
Get the address type given a file address in an object file.
lldb_private::StructuredData::ObjectSP GetCorefileProcessMetadata() override
Get process metadata from the corefile in a StructuredData dictionary.
std::optional< llvm::VersionTuple > m_sdk_versions
static lldb_private::ConstString GetSectionNameLLDBNoNlist()
ObjectFileMachO(const lldb::ModuleSP &module_sp, lldb::DataExtractorSP extractor_sp, lldb::offset_t data_offset, const lldb_private::FileSpec *file, lldb::offset_t offset, lldb::offset_t length)
void GetLLDBSharedCacheUUID(lldb::addr_t &base_addir, lldb_private::UUID &uuid)
Intended for same-host arm device debugging where lldb will read shared cache libraries out of its ow...
llvm::VersionTuple GetVersion() override
Get the object file version numbers.
EncryptedFileRanges GetEncryptedFileRanges()
uint32_t GetNumThreadContexts() override
static lldb_private::ConstString GetSectionNameEHFrame()
lldb::offset_t m_linkedit_original_offset
lldb_private::Section * GetMachHeaderSection()
A section + offset based address class.
Definition Address.h:62
A class which holds the metadata from a remote stub/corefile note about how many bits are used for ad...
An architecture specification class.
Definition ArchSpec.h:31
A uniqued constant string class.
Definition ConstString.h:40
An data extractor class.
A file collection class.
A file utility class.
Definition FileSpec.h:57
A plug-in interface definition class for object file parsers.
Definition ObjectFile.h:46
ObjectFile(const lldb::ModuleSP &module_sp, const FileSpec *file_spec_ptr, lldb::offset_t file_offset, lldb::offset_t length, lldb::DataExtractorSP extractor_sp, lldb::offset_t data_offset)
Construct with a parent module, offset, and header data.
A plug-in interface definition class for debugging a process.
Definition Process.h:354
An error handling class.
Definition Status.h:118
A stream class that can stream formatted output to a file.
Definition Stream.h:28
std::shared_ptr< Object > ObjectSP
Represents UUID's of various sizes.
Definition UUID.h:27
#define LLDB_INVALID_ADDRESS
A class that represents a running process on the host machine.
uint64_t offset_t
Definition lldb-types.h:85
std::shared_ptr< lldb_private::Process > ProcessSP
ByteOrder
Byte ordering definitions.
std::shared_ptr< lldb_private::DataBuffer > DataBufferSP
std::shared_ptr< lldb_private::WritableDataBuffer > WritableDataBufferSP
uint64_t addr_t
Definition lldb-types.h:80
std::shared_ptr< lldb_private::RegisterContext > RegisterContextSP
std::shared_ptr< lldb_private::DataExtractor > DataExtractorSP
std::shared_ptr< lldb_private::Module > ModuleSP
void operator=(const llvm::MachO::dyld_info_command &in)
DyldInfoCommandLargeOffsets(const llvm::MachO::dyld_info_command &in)
uint32_t cmd
LC_DYLD_INFO or LC_DYLD_INFO_ONLY.
DysymtabCommandLargeOffsets(const llvm::MachO::dysymtab_command &in)
void operator=(const llvm::MachO::dysymtab_command &in)
lldb_private::StreamString payload
LCNoteEntry(uint32_t addr_byte_size, lldb::ByteOrder byte_order)
LinkeditDataCommandLargeOffsets(const llvm::MachO::linkedit_data_command &in)
void operator=(const llvm::MachO::linkedit_data_command &in)
std::vector< MachOCorefileImageEntry > all_image_infos
A corefile may include metadata about all of the binaries that were present in the process when the c...
std::vector< std::tuple< lldb_private::ConstString, lldb::addr_t > > segment_load_addresses
void operator=(const llvm::MachO::symtab_command &in)
SymtabCommandLargeOffsets(const llvm::MachO::symtab_command &in)