LLDB mainline
DWARFUnit.h
Go to the documentation of this file.
1//===-- DWARFUnit.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_SYMBOLFILE_DWARF_DWARFUNIT_H
10#define LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFUNIT_H
11
12#include "DWARFDIE.h"
13#include "DWARFDebugInfoEntry.h"
16#include "llvm/DebugInfo/DWARF/DWARFDebugAbbrev.h"
17#include "llvm/DebugInfo/DWARF/DWARFDebugRnglists.h"
18#include "llvm/Support/RWMutex.h"
19#include <atomic>
20#include <optional>
21
22namespace lldb_private::plugin {
23namespace dwarf {
24class DWARFUnit;
25class DWARFCompileUnit;
26class NameToDIE;
27class SymbolFileDWARF;
28class SymbolFileDWARFDwo;
29
30typedef std::shared_ptr<DWARFUnit> DWARFUnitSP;
31
39};
40
41/// Base class describing the header of any kind of "unit." Some information
42/// is specific to certain unit types. We separate this class out so we can
43/// parse the header before deciding what specific kind of unit to construct.
47 uint16_t m_version = 0;
49
50 const llvm::DWARFUnitIndex::Entry *m_index_entry = nullptr;
51
52 uint8_t m_unit_type = 0;
53 uint8_t m_addr_size = 0;
54
55 uint64_t m_type_hash = 0;
56 uint32_t m_type_offset = 0;
57
58 std::optional<uint64_t> m_dwo_id;
59
60 DWARFUnitHeader() = default;
61
62public:
63 dw_offset_t GetOffset() const { return m_offset; }
64 uint16_t GetVersion() const { return m_version; }
65 uint16_t GetAddressByteSize() const { return m_addr_size; }
66 dw_offset_t GetLength() const { return m_length; }
68 uint8_t GetUnitType() const { return m_unit_type; }
69 const llvm::DWARFUnitIndex::Entry *GetIndexEntry() const {
70 return m_index_entry;
71 }
72 uint64_t GetTypeHash() const { return m_type_hash; }
74 std::optional<uint64_t> GetDWOId() const { return m_dwo_id; }
75 bool IsTypeUnit() const {
76 return m_unit_type == llvm::dwarf::DW_UT_type ||
77 m_unit_type == llvm::dwarf::DW_UT_split_type;
78 }
80
81 llvm::Error ApplyIndexEntry(const llvm::DWARFUnitIndex::Entry *index_entry);
82
83 static llvm::Expected<DWARFUnitHeader> extract(const DWARFDataExtractor &data,
84 DIERef::Section section,
85 DWARFContext &dwarf_context,
86 lldb::offset_t *offset_ptr);
87};
88
89class DWARFUnit : public UserID {
91 llvm::iterator_range<DWARFDebugInfoEntry::collection::iterator>;
92
93public:
94 static llvm::Expected<DWARFUnitSP>
96 const DWARFDataExtractor &debug_info, DIERef::Section section,
97 lldb::offset_t *offset_ptr);
98 virtual ~DWARFUnit();
99
100 bool IsDWOUnit() { return m_is_dwo; }
101 /// Get the DWO ID from the DWARFUnitHeader for DWARF5, or from the unit DIE's
102 /// DW_AT_dwo_id or DW_AT_GNU_dwo_id for DWARF4 and earlier.
103 std::optional<uint64_t> GetDWOId();
104 /// Get the DWO ID from the DWARFUnitHeader only. DWARF5 skeleton units have
105 /// the DWO ID in the compile unit header and we sometimes only want to access
106 /// this cheap value without causing the more expensive attribute fetches that
107 /// GetDWOId() uses.
108 std::optional<uint64_t> GetHeaderDWOId() { return m_header.GetDWOId(); }
111 void ExtractDIEsIfNeeded();
112
115
116 public:
117 bool m_clear_dies = false;
124 };
126
127 bool Verify(Stream *s) const;
128 virtual void Dump(Stream *s) const = 0;
129 /// Get the data that contains the DIE information for this unit.
130 ///
131 /// This will return the correct bytes that contain the data for
132 /// this DWARFUnit. It could be .debug_info or .debug_types
133 /// depending on where the data for this unit originates.
134 ///
135 /// \return
136 /// The correct data for the DIE information in this unit.
137 const DWARFDataExtractor &GetData() const;
138
139 /// Get the size in bytes of the unit header.
140 ///
141 /// \return
142 /// Byte size of the unit header
143 uint32_t GetHeaderByteSize() const;
144
145 // Offset of the initial length field.
147 /// Get the size in bytes of the length field in the header.
148 ///
149 /// In DWARF32 this is just 4 bytes
150 ///
151 /// \return
152 /// Byte size of the compile unit header length field
153 size_t GetLengthByteSize() const { return 4; }
154
155 bool ContainsDIEOffset(dw_offset_t die_offset) const {
156 return die_offset >= GetFirstDIEOffset() &&
157 die_offset < GetNextUnitOffset();
158 }
160 return GetOffset() + GetHeaderByteSize();
161 }
163 // Size of the CU data (without initial length and without header).
164 size_t GetDebugInfoSize() const;
165 // Size of the CU data incl. header but without initial length.
167 uint16_t GetVersion() const { return m_header.GetVersion(); }
168 const llvm::DWARFAbbreviationDeclarationSet *GetAbbreviations() const;
170 uint8_t GetAddressByteSize() const { return m_header.GetAddressByteSize(); }
171 dw_addr_t GetAddrBase() const { return m_addr_base.value_or(0); }
176 void SetAddrBase(dw_addr_t addr_base);
177 void SetLoclistsBase(dw_addr_t loclists_base);
178 void SetRangesBase(dw_addr_t ranges_base);
179 void SetStrOffsetsBase(dw_offset_t str_offsets_base);
180 virtual void BuildAddressRangeTable(DWARFDebugAranges *debug_aranges) = 0;
181
182 dw_addr_t ReadAddressFromDebugAddrSection(uint32_t index) const;
183
185
187
188 void SetBaseAddress(dw_addr_t base_addr);
189
191
192 DWARFDIE DIE() { return DWARFDIE(this, DIEPtr()); }
193
194 DWARFDIE GetDIE(dw_offset_t die_offset);
195
196 /// Returns the AT_Name of the DIE at `die_offset`, if it exists, without
197 /// parsing the entire compile unit. An empty is string is returned upon
198 /// error or if the attribute is not present.
199 llvm::StringRef PeekDIEName(dw_offset_t die_offset);
200
202
203 static uint8_t GetAddressByteSize(const DWARFUnit *cu);
204
205 static uint8_t GetDefaultAddressSize();
206
208
210
211 /// Get the skeleton compile unit for a DWO file.
212 ///
213 /// We need to keep track of the skeleton compile unit for a DWO file so
214 /// we can access it. Sometimes this value is cached when the skeleton
215 /// compile unit is first parsed, but if a .dwp file parses all of the
216 /// DWARFUnits in the file, the skeleton compile unit might not have been
217 /// parsed yet, to there might not be a backlink. This accessor handles
218 /// both cases correctly and avoids crashes.
220
221 void SetSkeletonUnit(DWARFUnit *skeleton_unit);
222
224
226
228
230
232
233 llvm::VersionTuple GetProducerVersion();
234
235 uint64_t GetDWARFLanguageType();
236
237 bool GetIsOptimized();
238
240 const FileSpec &GetAbsolutePath();
241 FileSpec GetFile(size_t file_idx);
243
244 SymbolFileDWARFDwo *GetDwoSymbolFile(bool load_all_debug_info = true);
245
248 return die_iterator_range(m_die_array.begin(), m_die_array.end());
249 }
250
252
253 uint8_t GetUnitType() const { return m_header.GetUnitType(); }
254 bool IsTypeUnit() const { return m_header.IsTypeUnit(); }
255 /// Note that this check only works for DWARF5+.
256 bool IsSkeletonUnit() const {
257 return GetUnitType() == llvm::dwarf::DW_UT_skeleton;
258 }
259
260 std::optional<uint64_t> GetStringOffsetSectionItem(uint32_t index) const;
261
262 /// Return a list of address ranges resulting from a (possibly encoded)
263 /// range list starting at a given offset in the appropriate ranges section.
264 llvm::Expected<DWARFRangeList> FindRnglistFromOffset(dw_offset_t offset);
265
266 /// Return a list of address ranges retrieved from an encoded range
267 /// list whose offset is found via a table lookup given an index (DWARF v5
268 /// and later).
269 llvm::Expected<DWARFRangeList> FindRnglistFromIndex(uint32_t index);
270
271 /// Return a rangelist's offset based on an index. The index designates
272 /// an entry in the rangelist table's offset array and is supplied by
273 /// DW_FORM_rnglistx.
274 llvm::Expected<uint64_t> GetRnglistOffset(uint32_t Index);
275
276 std::optional<uint64_t> GetLoclistOffset(uint32_t Index) {
278 return std::nullopt;
279
280 std::optional<uint64_t> Offset = m_loclist_table_header->getOffsetEntry(
282 if (!Offset)
283 return std::nullopt;
284 return *Offset + m_loclists_base;
285 }
286
287 /// Return the location table for parsing the given location list data. The
288 /// format is chosen according to the unit type. Never returns null.
289 std::unique_ptr<llvm::DWARFLocationTable>
290 GetLocationTable(const DataExtractor &data) const;
291
293
294 /// Returns true if any DIEs in the unit match any DW_TAG values in \a tags.
295 ///
296 /// \param[in] tags
297 /// An array of dw_tag_t values to check all abbrevitions for.
298 ///
299 /// \returns
300 /// True if any DIEs match any tag in \a tags, false otherwise.
301 bool HasAny(llvm::ArrayRef<dw_tag_t> tags);
302
303 /// Get the fission .dwo file specific error for this compile unit.
304 ///
305 /// The skeleton compile unit only can have a DWO error. Any other type
306 /// of DWARFUnit will not have a valid DWO error.
307 ///
308 /// \returns
309 /// A valid DWO error if there is a problem with anything in the
310 /// locating or parsing inforamtion in the .dwo file
311 const Status &GetDwoError() const { return m_dwo_error; }
312
313 /// Set the fission .dwo file specific error for this compile unit.
314 ///
315 /// This helps tracks issues that arise when trying to locate or parse a
316 /// .dwo file. Things like a missing .dwo file, DWO ID mismatch, and other
317 /// .dwo errors can be stored in each compile unit so the issues can be
318 /// communicated to the user.
320
321protected:
323 const DWARFUnitHeader &header,
324 const llvm::DWARFAbbreviationDeclarationSet &abbrevs,
325 DIERef::Section section, bool is_dwo);
326
328 const DWARFDataExtractor &data,
329 lldb::offset_t *offset_ptr);
330
331 // Get the DWARF unit DWARF debug information entry. Parse the single DIE
332 // if needed.
335 // m_first_die_mutex is not required as m_first_die is never cleared.
336 if (!m_first_die)
337 return nullptr;
338 return &m_first_die;
339 }
340
341 // Get all DWARF debug informration entries. Parse all DIEs if needed.
344 if (m_die_array.empty())
345 return nullptr;
346 return &m_die_array[0];
347 }
348
349 const std::optional<llvm::DWARFDebugRnglistTable> &GetRnglistTable();
350
352
354 std::shared_ptr<DWARFUnit> m_dwo;
356 const llvm::DWARFAbbreviationDeclarationSet *m_abbrevs = nullptr;
358 // If this is a DWO file, we have a backlink to our skeleton compile unit.
360 // The compile unit debug information entry item
362 mutable llvm::sys::RWMutex m_die_array_mutex;
363 // It is used for tracking of ScopedExtractDIEs instances.
364 mutable llvm::sys::RWMutex m_die_array_scoped_mutex;
365 // ScopedExtractDIEs instances should not call ClearDIEsRWLocked()
366 // as someone called ExtractDIEsIfNeeded().
367 std::atomic<bool> m_cancel_scopes;
368 // GetUnitDIEPtrOnly() needs to return pointer to the first DIE.
369 // But the first element of m_die_array after ExtractUnitDIEIfNeeded()
370 // would possibly move in memory after later ExtractDIEsIfNeeded().
372 llvm::sys::RWMutex m_first_die_mutex;
373 // A table similar to the .debug_aranges table, but this one points to the
374 // exact DW_TAG_subprogram DIEs
375 std::unique_ptr<DWARFDebugAranges> m_func_aranges_up;
378 llvm::VersionTuple m_producer_version;
379 std::optional<uint64_t> m_language_type;
381 std::optional<FileSpec> m_comp_dir;
382 std::optional<FileSpec> m_file_spec;
383 std::optional<dw_addr_t> m_addr_base; ///< Value of DW_AT_addr_base.
384 dw_addr_t m_loclists_base = 0; ///< Value of DW_AT_loclists_base.
385 dw_addr_t m_ranges_base = 0; ///< Value of DW_AT_rnglists_base.
386 std::optional<uint64_t> m_gnu_addr_base;
387 std::optional<uint64_t> m_gnu_ranges_base;
388
389 /// Value of DW_AT_stmt_list.
391
392 dw_offset_t m_str_offsets_base = 0; // Value of DW_AT_str_offsets_base.
393
394 std::optional<llvm::DWARFDebugRnglistTable> m_rnglist_table;
396 std::optional<llvm::DWARFListTableHeader> m_loclist_table_header;
397
401 /// Value of DW_AT_GNU_dwo_id (v4) or dwo_id from CU header (v5).
402 std::optional<uint64_t> m_dwo_id;
403 /// If we get an error when trying to load a .dwo file, save that error here.
404 /// Errors include .dwo/.dwp file not found, or the .dwp/.dwp file was found
405 /// but DWO ID doesn't match, etc.
407
408private:
409 void ParseProducerInfo();
410 void ExtractDIEsRWLocked();
411 void ClearDIEsRWLocked();
412
413 void AddUnitDIE(const DWARFDebugInfoEntry &cu_die);
415
417 void ComputeAbsolutePath();
418
419 DWARFUnit(const DWARFUnit &) = delete;
420 const DWARFUnit &operator=(const DWARFUnit &) = delete;
421};
422} // namespace dwarf
423} // namespace lldb_private::plugin
424
425#endif // LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFUNIT_H
static llvm::raw_ostream & error(Stream &strm)
A class that describes a compilation unit.
Definition: CompileUnit.h:41
llvm::DataExtractor GetAsLLVM() const
An data extractor class.
Definition: DataExtractor.h:48
A file utility class.
Definition: FileSpec.h:56
llvm::sys::path::Style Style
Definition: FileSpec.h:58
An error handling class.
Definition: Status.h:44
A stream class that can stream formatted output to a file.
Definition: Stream.h:28
const DWARFDataExtractor & getOrLoadLocListsData()
DWARFDebugInfoEntry objects assume that they are living in one big vector and do pointer arithmetic o...
std::vector< DWARFDebugInfoEntry > collection
Base class describing the header of any kind of "unit." Some information is specific to certain unit ...
Definition: DWARFUnit.h:44
const llvm::DWARFUnitIndex::Entry * GetIndexEntry() const
Definition: DWARFUnit.h:69
const llvm::DWARFUnitIndex::Entry * m_index_entry
Definition: DWARFUnit.h:50
llvm::Error ApplyIndexEntry(const llvm::DWARFUnitIndex::Entry *index_entry)
Definition: DWARFUnit.cpp:927
static llvm::Expected< DWARFUnitHeader > extract(const DWARFDataExtractor &data, DIERef::Section section, DWARFContext &dwarf_context, lldb::offset_t *offset_ptr)
Definition: DWARFUnit.cpp:956
std::optional< uint64_t > GetDWOId() const
Definition: DWARFUnit.h:74
std::optional< uint64_t > m_dwo_id
Definition: DWARFUnit.h:58
ScopedExtractDIEs(const ScopedExtractDIEs &)=delete
const ScopedExtractDIEs & operator=(const ScopedExtractDIEs &)=delete
const DWARFUnit & operator=(const DWARFUnit &)=delete
std::optional< dw_addr_t > m_addr_base
Value of DW_AT_addr_base.
Definition: DWARFUnit.h:383
bool IsSkeletonUnit() const
Note that this check only works for DWARF5+.
Definition: DWARFUnit.h:256
std::unique_ptr< llvm::DWARFLocationTable > GetLocationTable(const DataExtractor &data) const
Return the location table for parsing the given location list data.
Definition: DWARFUnit.cpp:522
std::optional< FileSpec > m_file_spec
Definition: DWARFUnit.h:382
size_t GetLengthByteSize() const
Get the size in bytes of the length field in the header.
Definition: DWARFUnit.h:153
std::optional< uint64_t > GetHeaderDWOId()
Get the DWO ID from the DWARFUnitHeader only.
Definition: DWARFUnit.h:108
std::optional< llvm::DWARFDebugRnglistTable > m_rnglist_table
Definition: DWARFUnit.h:394
lldb_private::CompileUnit * m_lldb_cu
Definition: DWARFUnit.h:357
const DWARFDebugInfoEntry * GetUnitDIEPtrOnly()
Definition: DWARFUnit.h:333
llvm::sys::RWMutex m_die_array_mutex
Definition: DWARFUnit.h:362
dw_offset_t m_line_table_offset
Value of DW_AT_stmt_list.
Definition: DWARFUnit.h:390
llvm::sys::RWMutex m_die_array_scoped_mutex
Definition: DWARFUnit.h:364
void SetStrOffsetsBase(dw_offset_t str_offsets_base)
Definition: DWARFUnit.cpp:608
std::atomic< bool > m_cancel_scopes
Definition: DWARFUnit.h:367
Status m_dwo_error
If we get an error when trying to load a .dwo file, save that error here.
Definition: DWARFUnit.h:406
void SetLoclistsBase(dw_addr_t loclists_base)
Definition: DWARFUnit.cpp:490
SymbolFileDWARF & GetSymbolFileDWARF() const
Definition: DWARFUnit.h:229
DIERef::Section GetDebugSection() const
Definition: DWARFUnit.h:251
const DWARFDebugAranges & GetFunctionAranges()
Definition: DWARFUnit.cpp:907
const DWARFDataExtractor & GetData() const
Get the data that contains the DIE information for this unit.
Definition: DWARFUnit.cpp:1065
static llvm::Expected< DWARFUnitSP > extract(SymbolFileDWARF &dwarf2Data, lldb::user_id_t uid, const DWARFDataExtractor &debug_info, DIERef::Section section, lldb::offset_t *offset_ptr)
Definition: DWARFUnit.cpp:1006
DWARFCompileUnit * GetSkeletonUnit()
Get the skeleton compile unit for a DWO file.
Definition: DWARFUnit.cpp:710
dw_addr_t ReadAddressFromDebugAddrSection(uint32_t index) const
Definition: DWARFUnit.cpp:612
const DWARFDebugInfoEntry * DIEPtr()
Definition: DWARFUnit.h:342
bool ContainsDIEOffset(dw_offset_t die_offset) const
Definition: DWARFUnit.h:155
llvm::iterator_range< DWARFDebugInfoEntry::collection::iterator > die_iterator_range
Definition: DWARFUnit.h:91
std::optional< FileSpec > m_comp_dir
Definition: DWARFUnit.h:381
dw_offset_t GetFirstDIEOffset() const
Definition: DWARFUnit.h:159
const Status & GetDwoError() const
Get the fission .dwo file specific error for this compile unit.
Definition: DWARFUnit.h:311
std::optional< uint64_t > m_language_type
Definition: DWARFUnit.h:379
llvm::StringRef PeekDIEName(dw_offset_t die_offset)
Returns the AT_Name of the DIE at die_offset, if it exists, without parsing the entire compile unit.
Definition: DWARFUnit.cpp:671
DWARFDebugInfoEntry::collection m_die_array
Definition: DWARFUnit.h:361
void SetBaseAddress(dw_addr_t base_addr)
Definition: DWARFUnit.cpp:636
std::optional< uint64_t > m_gnu_ranges_base
Definition: DWARFUnit.h:387
const llvm::DWARFAbbreviationDeclarationSet * m_abbrevs
Definition: DWARFUnit.h:356
void SetLLDBCompUnit(lldb_private::CompileUnit *cu)
Definition: DWARFUnit.h:209
DWARFUnit(const DWARFUnit &)=delete
lldb_private::CompileUnit * GetLLDBCompUnit() const
Definition: DWARFUnit.h:207
const DIERef::Section m_section
Definition: DWARFUnit.h:398
dw_offset_t GetNextUnitOffset() const
Definition: DWARFUnit.h:162
DWARFDataExtractor GetLocationData() const
Definition: DWARFUnit.cpp:532
const std::optional< llvm::DWARFDebugRnglistTable > & GetRnglistTable()
Definition: DWARFUnit.cpp:570
llvm::Expected< uint64_t > GetRnglistOffset(uint32_t Index)
Return a rangelist's offset based on an index.
Definition: DWARFUnit.cpp:586
std::unique_ptr< DWARFDebugAranges > m_func_aranges_up
Definition: DWARFUnit.h:375
void SetSkeletonUnit(DWARFUnit *skeleton_unit)
Definition: DWARFUnit.cpp:721
std::optional< uint64_t > GetLoclistOffset(uint32_t Index)
Definition: DWARFUnit.h:276
dw_addr_t m_ranges_base
Value of DW_AT_rnglists_base.
Definition: DWARFUnit.h:385
virtual void Dump(Stream *s) const =0
dw_addr_t m_loclists_base
Value of DW_AT_loclists_base.
Definition: DWARFUnit.h:384
void SetRangesBase(dw_addr_t ranges_base)
Definition: DWARFUnit.cpp:563
uint32_t GetHeaderByteSize() const
Get the size in bytes of the unit header.
Definition: DWARFUnit.cpp:1071
void SetAddrBase(dw_addr_t addr_base)
Definition: DWARFUnit.cpp:459
llvm::Expected< DWARFRangeList > FindRnglistFromIndex(uint32_t index)
Return a list of address ranges retrieved from an encoded range list whose offset is found via a tabl...
Definition: DWARFUnit.cpp:1137
std::optional< llvm::DWARFListTableHeader > m_loclist_table_header
Definition: DWARFUnit.h:396
llvm::VersionTuple GetProducerVersion()
Definition: DWARFUnit.cpp:788
virtual void BuildAddressRangeTable(DWARFDebugAranges *debug_aranges)=0
std::optional< uint64_t > m_dwo_id
Value of DW_AT_GNU_dwo_id (v4) or dwo_id from CU header (v5).
Definition: DWARFUnit.h:402
std::shared_ptr< DWARFUnit > m_dwo
Definition: DWARFUnit.h:354
std::optional< uint64_t > m_gnu_addr_base
Definition: DWARFUnit.h:386
llvm::VersionTuple m_producer_version
Definition: DWARFUnit.h:378
std::optional< uint64_t > GetStringOffsetSectionItem(uint32_t index) const
Definition: DWARFUnit.cpp:1087
DWARFDIE GetDIE(dw_offset_t die_offset)
Definition: DWARFUnit.cpp:650
lldb::ByteOrder GetByteOrder() const
Definition: DWARFUnit.cpp:632
void AddUnitDIE(const DWARFDebugInfoEntry &cu_die)
Definition: DWARFUnit.cpp:380
void SetDwoError(const Status &error)
Set the fission .dwo file specific error for this compile unit.
Definition: DWARFUnit.h:319
llvm::sys::RWMutex m_first_die_mutex
Definition: DWARFUnit.h:372
llvm::Error ExtractHeader(SymbolFileDWARF &dwarf, const DWARFDataExtractor &data, lldb::offset_t *offset_ptr)
SymbolFileDWARFDwo * GetDwoSymbolFile(bool load_all_debug_info=true)
Definition: DWARFUnit.cpp:899
const FileSpec & GetCompilationDirectory()
Definition: DWARFUnit.cpp:826
std::optional< uint64_t > GetDWOId()
Get the DWO ID from the DWARFUnitHeader for DWARF5, or from the unit DIE's DW_AT_dwo_id or DW_AT_GNU_...
Definition: DWARFUnit.cpp:374
const llvm::DWARFAbbreviationDeclarationSet * GetAbbreviations() const
Definition: DWARFUnit.cpp:446
bool HasAny(llvm::ArrayRef< dw_tag_t > tags)
Returns true if any DIEs in the unit match any DW_TAG values in tags.
Definition: DWARFUnit.cpp:1144
llvm::Expected< DWARFRangeList > FindRnglistFromOffset(dw_offset_t offset)
Return a list of address ranges resulting from a (possibly encoded) range list starting at a given of...
Definition: DWARFUnit.cpp:1093
DWARFDataExtractor GetRnglistData() const
Definition: DWARFUnit.cpp:546
FileSpec GetFile(size_t file_idx)
Definition: DWARFUnit.cpp:838
uint64_t dw_offset_t
Definition: dwarf.h:31
#define DW_INVALID_OFFSET
Definition: dwarf.h:36
uint64_t dw_addr_t
Definition: dwarf.h:27
std::shared_ptr< DWARFUnit > DWARFUnitSP
Definition: DWARFUnit.h:30
uint64_t offset_t
Definition: lldb-types.h:83
ByteOrder
Byte ordering definitions.
uint64_t user_id_t
Definition: lldb-types.h:80
A mix in class that contains a generic user ID.
Definition: UserID.h:31