16#include "llvm/DebugInfo/DWARF/DWARFAddressRange.h"
17#include "llvm/DebugInfo/DWARF/DWARFDebugAbbrev.h"
18#include "llvm/DebugInfo/DWARF/DWARFDebugLoc.h"
19#include "llvm/DebugInfo/DWARF/DWARFDebugRangeList.h"
20#include "llvm/Object/Error.h"
33using namespace llvm::dwarf;
38 const llvm::DWARFUnitHeader &header,
39 const llvm::DWARFAbbreviationDeclarationSet &abbrevs,
87 std::shared_ptr<SymbolFileDWARFDwo> dwo_symbol_file =
96 "unable to load .dwo file from \"{0}\" due to ID ({1:x16}) mismatch "
97 "for skeleton DIE at {2:x8}",
98 dwo_symbol_file->GetObjectFile()->GetFileSpec().GetPath(), *
m_dwo_id,
107 "multiple compile units with Dwo ID {0:x16}", *
m_dwo_id));
115 "unable to extract compile unit DIE from .dwo file for skeleton "
134 else if (dwo_symbol_file->GetDWARFContext()
135 .getOrLoadRngListsData()
137 dwo_cu->
SetRangesBase(llvm::DWARFListTableHeader::getHeaderSize(DWARF32));
140 dwo_symbol_file->GetDWARFContext().getOrLoadLocListsData().GetByteSize() >
142 dwo_cu->
SetLoclistsBase(llvm::DWARFListTableHeader::getHeaderSize(DWARF32));
146 m_dwo = std::shared_ptr<DWARFUnit>(std::move(dwo_symbol_file), dwo_cu);
192 llvm::sys::ScopedLock lock(
m_cu->m_die_array_scoped_mutex);
193 ++
m_cu->m_die_array_scoped_count;
199 llvm::sys::ScopedLock lock(
m_cu->m_die_array_scoped_mutex);
200 --
m_cu->m_die_array_scoped_count;
202 !
m_cu->m_cancel_scopes) {
203 llvm::sys::ScopedWriter lock(
m_cu->m_die_array_mutex);
204 m_cu->ClearDIEsRWLocked();
229 llvm::formatv(
"{0:x16}: DWARFUnit::ExtractDIEsIfNeeded()",
GetOffset())
244 std::vector<uint32_t> die_index_stack;
245 die_index_stack.reserve(32);
246 die_index_stack.push_back(0);
247 bool prev_die_had_children =
false;
248 while (offset < next_cu_offset && die.
Extract(data, *
this, &offset)) {
249 const bool null_die = die.
IsNULL();
251 assert(
m_die_array.empty() &&
"Compile unit DIE already added");
279 if (prev_die_had_children) {
290 if (die_index_stack.back())
291 m_die_array[die_index_stack.back()].SetSiblingIndex(
301 if (!die_index_stack.empty())
302 die_index_stack.pop_back();
306 prev_die_had_children =
false;
311 if (die_has_children) {
312 die_index_stack.push_back(0);
315 prev_die_had_children = die_has_children;
339 m_dwo->ExtractDIEsIfNeeded();
351 if (
const llvm::DWARFUnitIndex::Entry *entry =
m_header.getIndexEntry()) {
352 if (
const auto *contribution =
353 entry->getContribution(llvm::DW_SECT_STR_OFFSETS))
354 baseOffset = contribution->getOffset();
362 uint64_t length = strOffsets.
GetU32(&baseOffset);
363 if (length == 0xffffffff)
364 length = strOffsets.
GetU64(&baseOffset);
367 if (strOffsets.
GetU16(&baseOffset) < 5)
387 for (
size_t i = 0; i < attributes.
Size(); ++i) {
397 for (
size_t i = 0; i < attributes.
Size(); ++i) {
405 case DW_AT_loclists_base:
408 case DW_AT_rnglists_base:
411 case DW_AT_str_offsets_base:
422 case DW_AT_stmt_list:
425 case DW_AT_GNU_addr_base:
428 case DW_AT_GNU_ranges_base:
431 case DW_AT_GNU_dwo_id:
448const llvm::DWARFAbbreviationDeclarationSet *
466template <
typename ListTableType>
467static llvm::Expected<ListTableType>
469 DwarfFormat format) {
477 return ListTableType();
480 uint64_t HeaderSize = llvm::DWARFListTableHeader::getHeaderSize(format);
481 if (offset < HeaderSize)
482 return llvm::createStringError(std::errc::invalid_argument,
483 "did not detect a valid"
484 " list table with base = 0x%" PRIx64
"\n",
486 offset -= HeaderSize;
488 if (llvm::Error E = Table.extractHeaderAndOffsets(data, &offset))
495 if (
const llvm::DWARFUnitIndex::Entry *entry =
m_header.getIndexEntry()) {
496 const auto *contribution = entry->getContribution(llvm::DW_SECT_LOCLISTS);
499 "Failed to find location list contribution for CU with DWO Id "
504 offset += contribution->getOffset();
508 uint64_t header_size = llvm::DWARFListTableHeader::getHeaderSize(DWARF32);
509 if (loclists_base < header_size)
513 offset += loclists_base - header_size;
515 m_dwarf.GetDWARFContext().getOrLoadLocListsData().GetAsLLVMDWARF(),
518 "Failed to extract location list table at offset {0:x16} (location "
519 "list base: {1:x16}): {2}",
520 offset, loclists_base,
toString(std::move(E)).c_str());
524std::unique_ptr<llvm::DWARFLocationTable>
526 llvm::DWARFDataExtractor llvm_data(
531 return std::make_unique<llvm::DWARFDebugLoclists>(llvm_data,
GetVersion());
532 return std::make_unique<llvm::DWARFDebugLoc>(llvm_data);
539 if (
const llvm::DWARFUnitIndex::Entry *entry =
m_header.getIndexEntry()) {
540 if (
const auto *contribution = entry->getContribution(
541 GetVersion() >= 5 ? llvm::DW_SECT_LOCLISTS : llvm::DW_SECT_EXT_LOC))
543 contribution->getLength32());
552 if (
const llvm::DWARFUnitIndex::Entry *entry =
m_header.getIndexEntry()) {
553 if (
const auto *contribution =
554 entry->getContribution(llvm::DW_SECT_RNGLISTS))
556 contribution->getLength32());
558 "Failed to find range list contribution for CU with signature {0:x16}",
559 entry->getSignature());
572const std::optional<llvm::DWARFDebugRnglistTable> &
576 if (
auto table_or_error =
582 "Failed to extract range list table at offset {0:x16}: {1}",
591 return llvm::createStringError(std::errc::invalid_argument,
592 "missing or invalid range list table");
594 return llvm::createStringError(
595 std::errc::invalid_argument,
596 llvm::formatv(
"DW_FORM_rnglistx cannot be used without "
597 "DW_AT_rnglists_base for CU at {0:x16}",
604 return llvm::createStringError(
605 std::errc::invalid_argument,
606 "invalid range list table index %u; OffsetEntryCount is %u, "
607 "DW_AT_rnglists_base is %" PRIu64,
620 m_dwarf.GetDWARFContext().getOrLoadAddrData();
621 if (data.ValidOffsetForDataOfSize(offset, index_size))
622 return data.GetMaxU64_unchecked(&offset, index_size);
632 m_dwo->ClearDIEsRWLocked();
636 return m_dwarf.GetObjectFile()->GetByteOrder();
659 "GetDIE for DIE {0:x16} is outside of its CU {1:x16}", die_offset,
669 if (pos != end && die_offset == (*pos).GetOffset())
677 return llvm::StringRef();
680 if (
const char *name =
685 for (
auto attr : {DW_AT_specification, DW_AT_abstract_origin}) {
691 if (
auto name = unit->PeekDIEName(offset); !name.empty())
695 return llvm::StringRef();
698llvm::Expected<std::pair<uint64_t, bool>>
702 const uint64_t abs_die_offset = relative_die_offset +
GetOffset();
706 return llvm::createStringError(
"cannot resolve DW_OP_convert type DIE");
713 return llvm::createStringError(
"unsupported type size");
717 case DW_ATE_signed_char:
720 case DW_ATE_unsigned:
721 case DW_ATE_unsigned_char:
725 return llvm::createStringError(
"unsupported encoding");
727 return std::pair{bit_size, sign};
733 const uint8_t op)
const {
741 std::vector<Value> &stack)
const {
743 reg_ctx, reg_kind, stack);
748 location_list.
Clear();
749 std::unique_ptr<llvm::DWARFLocationTable> loctable_up =
753 [&](uint32_t index) -> std::optional<llvm::object::SectionedAddress> {
757 return llvm::object::SectionedAddress{address};
759 auto process_list = [&](llvm::Expected<llvm::DWARFLocationExpression> loc) {
765 std::make_shared<DataBufferHeap>(loc->Expr.data(), loc->Expr.size());
768 location_list.
AddExpression(loc->Range->LowPC, loc->Range->HighPC, expr);
771 llvm::Error
error = loctable_up->visitAbsoluteLocationList(
774 location_list.
Sort();
804 if (candidate_skeleton_unit)
808 return llvm::dyn_cast_or_null<DWARFCompileUnit>(
m_skeleton_unit.load());
813 if (
m_skeleton_unit.compare_exchange_strong(expected_unit, &skeleton_unit))
815 if (expected_unit == &skeleton_unit) {
835 llvm::StringRef producer(
837 if (producer.empty())
841 llvm::StringRef(R
"(swiftlang-([0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?))"));
843 llvm::StringRef(R
"(clang-([0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?))"));
845 llvm::SmallVector<llvm::StringRef, 3> matches;
846 if (g_swiftlang_version_regex.
Execute(producer, &matches)) {
849 }
else if (producer.contains(
"clang")) {
850 if (g_clang_version_regex.
Execute(producer, &matches))
853 }
else if (producer.contains(
"GNU")) {
915 return m_dwarf.GetFile(*
this, file_idx);
920static llvm::StringRef
922 if (!path_from_dwarf.contains(
':'))
923 return path_from_dwarf;
924 llvm::StringRef host, path;
925 std::tie(host, path) = path_from_dwarf.split(
':');
927 if (host.contains(
'/'))
928 return path_from_dwarf;
932 if (host.size() == 1 && llvm::isAlpha(host[0]) &&
933 (path.starts_with(
"\\") || path.starts_with(
"/")))
934 return path_from_dwarf;
947 if (!comp_dir.empty()) {
976 if (load_all_debug_info)
979 return &llvm::cast<SymbolFileDWARFDwo>(
m_dwo->GetSymbolFileDWARF());
997 const bool minimize =
false;
1003llvm::Expected<DWARFUnitSP>
1013 llvm::DWARFSectionKind section_kind_llvm =
1015 ? llvm::DWARFSectionKind::DW_SECT_INFO
1016 : llvm::DWARFSectionKind::DW_SECT_EXT_TYPES;
1018 llvm::DWARFDataExtractor debug_info_llvm = debug_info.
GetAsLLVMDWARF();
1019 llvm::DWARFUnitHeader header;
1020 if (llvm::Error extract_err = header.extract(
1021 context.
GetAsLLVM(), debug_info_llvm, offset_ptr, section_kind_llvm))
1022 return std::move(extract_err);
1024 if (context.
isDwo()) {
1025 const llvm::DWARFUnitIndex::Entry *entry =
nullptr;
1026 const llvm::DWARFUnitIndex &index = header.isTypeUnit()
1030 if (header.isTypeUnit())
1031 entry = index.getFromHash(header.getTypeHash());
1032 else if (
auto dwo_id = header.getDWOId())
1033 entry = index.getFromHash(*dwo_id);
1036 entry = index.getFromOffset(header.getOffset());
1038 if (llvm::Error err = header.applyIndexEntry(entry))
1039 return std::move(err);
1042 const llvm::DWARFDebugAbbrev *abbr =
dwarf.DebugAbbrev();
1044 return llvm::make_error<llvm::object::GenericBinaryError>(
1045 "No debug_abbrev data");
1047 bool abbr_offset_OK =
1048 dwarf.GetDWARFContext().getOrLoadAbbrevData().ValidOffset(
1049 header.getAbbrOffset());
1050 if (!abbr_offset_OK)
1051 return llvm::make_error<llvm::object::GenericBinaryError>(
1052 "Abbreviation offset for unit is not valid");
1054 llvm::Expected<const llvm::DWARFAbbreviationDeclarationSet *> abbrevs_or_err =
1055 abbr->getAbbreviationDeclarationSet(header.getAbbrOffset());
1056 if (!abbrevs_or_err)
1057 return abbrevs_or_err.takeError();
1059 const llvm::DWARFAbbreviationDeclarationSet *abbrevs = *abbrevs_or_err;
1061 return llvm::make_error<llvm::object::GenericBinaryError>(
1062 "No abbrev exists at the specified offset.");
1064 bool is_dwo =
dwarf.GetDWARFContext().isDwo();
1065 if (header.isTypeUnit())
1074 ?
m_dwarf.GetDWARFContext().getOrLoadDebugTypesData()
1075 :
m_dwarf.GetDWARFContext().getOrLoadDebugInfoData();
1080std::optional<uint64_t>
1084 return m_dwarf.GetDWARFContext().getOrLoadStrOffsetsData().GetMaxU64(
1085 &offset,
m_header.getDwarfOffsetByteSize());
1088llvm::Expected<llvm::DWARFAddressRangesVector>
1091 llvm::DWARFDataExtractor data =
1092 m_dwarf.GetDWARFContext().getOrLoadRangesData().GetAsLLVMDWARF();
1093 data.setAddressSize(
m_header.getAddressByteSize());
1095 llvm::DWARFDebugRangeList list;
1096 if (llvm::Error e = list.extract(data, &offset))
1098 return list.getAbsoluteRanges(
1104 return llvm::createStringError(std::errc::invalid_argument,
1105 "missing or invalid range list table");
1110 data.setAddressSize(
m_header.getAddressByteSize());
1112 if (!range_list_or_error)
1113 return range_list_or_error.takeError();
1115 return range_list_or_error->getAbsoluteRanges(
1117 [&](uint32_t index) {
1122 return llvm::object::SectionedAddress{
1123 m_dwarf.GetDWARFContext().getOrLoadAddrData().GetMaxU64(
1124 &offset, index_size)};
1128llvm::Expected<llvm::DWARFAddressRangesVector>
1132 return maybe_offset.takeError();
1139 return m_dwo->HasAny(tags);
1142 for (
const auto tag : tags) {
1143 if (tag == die.Tag())
static llvm::raw_ostream & error(Stream &strm)
static bool CompareDIEOffset(const DWARFDebugInfoEntry &die, const dw_offset_t die_offset)
static llvm::Expected< ListTableType > ParseListTableHeader(const llvm::DWARFDataExtractor &data, uint64_t offset, DwarfFormat format)
static llvm::StringRef removeHostnameFromPathname(llvm::StringRef path_from_dwarf)
#define LLDB_LOG_ERROR(log, error,...)
static double elapsed(const StatsTimepoint &start, const StatsTimepoint &end)
#define LLDB_SCOPED_TIMERF(...)
"lldb/Expression/DWARFExpressionList.h" Encapsulates a range map from file address range to a single ...
bool AddExpression(lldb::addr_t base, lldb::addr_t end, DWARFExpression expr)
void Sort()
Sort m_expressions.
"lldb/Expression/DWARFExpression.h" Encapsulates a DWARF location expression and interprets it.
A class that measures elapsed time in an exception safe way.
static std::optional< Style > GuessPathStyle(llvm::StringRef absolute_path)
Attempt to guess path style for a given path string.
llvm::sys::path::Style Style
lldb::ModuleSP GetModule() const
Get const accessor for the module pointer.
bool Execute(llvm::StringRef string, llvm::SmallVectorImpl< llvm::StringRef > *matches=nullptr) const
Execute a regular expression match using the compiled regular expression that is already in this obje...
static Status static Status FromErrorStringWithFormatv(const char *format, Args &&...args)
ObjectFile * GetObjectFile() override
dw_attr_t AttributeAtIndex(uint32_t i) const
bool ExtractFormValueAtIndex(uint32_t i, DWARFFormValue &form_value) const
uint64_t GetAttributeValueAsUnsigned(const dw_attr_t attr, uint64_t fail_value) const
const DWARFDataExtractor & getOrLoadLocListsData()
const DWARFDataExtractor & getOrLoadStrOffsetsData()
llvm::DWARFContext & GetAsLLVM()
const DWARFDataExtractor & getOrLoadRngListsData()
const DWARFDataExtractor & getOrLoadLocData()
DWARFDebugInfoEntry objects assume that they are living in one big vector and do pointer arithmetic o...
dw_offset_t GetOffset() const
DWARFAttributes GetAttributes(const DWARFUnit *cu, Recurse recurse=Recurse::yes) const
Get all attribute values for a given DIE, optionally following any specifications and abstract origin...
void SetParentIndex(uint32_t idx)
void BuildFunctionAddressRangeTable(DWARFUnit *cu, DWARFDebugAranges *debug_aranges) const
This function is builds a table very similar to the standard .debug_aranges table,...
const char * GetAttributeValueAsString(const DWARFUnit *cu, const dw_attr_t attr, const char *fail_value, bool check_elaborating_dies=false) const
uint64_t GetAttributeValueAsUnsigned(const DWARFUnit *cu, const dw_attr_t attr, uint64_t fail_value, bool check_elaborating_dies=false) const
bool Extract(const DWARFDataExtractor &data, const DWARFUnit &cu, lldb::offset_t *offset_ptr)
dw_offset_t GetAttributeValue(const DWARFUnit *cu, const dw_attr_t attr, DWARFFormValue &formValue, dw_offset_t *end_attr_offset_ptr=nullptr, bool check_elaborating_dies=false) const
collection::const_iterator const_iterator
FileSpec::Style GetPathStyle()
std::optional< dw_addr_t > m_addr_base
Value of DW_AT_addr_base.
DWARFBaseDIE GetUnitDIEOnly()
bool m_rnglist_table_done
void ExtractDIEsIfNeeded()
llvm::Expected< llvm::DWARFAddressRangesVector > FindRnglistFromOffset(dw_offset_t offset)
Return a list of address ranges resulting from a (possibly encoded) range list starting at a given of...
std::unique_ptr< llvm::DWARFLocationTable > GetLocationTable(const DataExtractor &data) const
Return the location table for parsing the given location list data.
dw_offset_t GetAbbrevOffset() const
std::optional< FileSpec > m_file_spec
void ExtractUnitDIEIfNeeded()
size_t GetLengthByteSize() const
Get the size in bytes of the length field in the header.
void ExtractUnitDIENoDwoIfNeeded()
std::optional< llvm::DWARFDebugRnglistTable > m_rnglist_table
virtual bool ParseVendorDWARFOpcode(uint8_t op, const DataExtractor &opcodes, lldb::offset_t &offset, RegisterContext *reg_ctx, lldb::RegisterKind reg_kind, std::vector< Value > &stack) const override
const DWARFDebugInfoEntry * GetUnitDIEPtrOnly()
llvm::sys::RWMutex m_die_array_mutex
bool LinkToSkeletonUnit(DWARFUnit &skeleton_unit)
dw_offset_t m_line_table_offset
Value of DW_AT_stmt_list.
void SetStrOffsetsBase(dw_offset_t str_offsets_base)
std::atomic< bool > m_cancel_scopes
Status m_dwo_error
If we get an error when trying to load a .dwo file, save that error here.
void SetLoclistsBase(dw_addr_t loclists_base)
SymbolFileDWARF & GetSymbolFileDWARF() const
dw_offset_t GetLength() const
void SetDwoStrOffsetsBase()
const DWARFDebugAranges & GetFunctionAranges()
dw_offset_t GetLineTableOffset()
dw_addr_t GetBaseAddress() const override
const DWARFDataExtractor & GetData() const
Get the data that contains the DIE information for this unit.
static llvm::Expected< DWARFUnitSP > extract(SymbolFileDWARF &dwarf2Data, lldb::user_id_t uid, const DWARFDataExtractor &debug_info, DIERef::Section section, lldb::offset_t *offset_ptr)
DWARFCompileUnit * GetSkeletonUnit()
Get the skeleton compile unit for a DWO file.
const DWARFDebugInfoEntry * DIEPtr()
bool ContainsDIEOffset(dw_offset_t die_offset) const
std::optional< FileSpec > m_comp_dir
dw_offset_t GetFirstDIEOffset() const
std::optional< uint64_t > m_language_type
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.
DWARFDebugInfoEntry::collection m_die_array
dw_addr_t GetStrOffsetsBase() const
void SetBaseAddress(dw_addr_t base_addr)
void ComputeCompDirAndGuessPathStyle()
std::optional< uint64_t > m_gnu_ranges_base
const llvm::DWARFAbbreviationDeclarationSet * m_abbrevs
llvm::Expected< std::pair< uint64_t, bool > > GetDIEBitSizeAndSign(uint64_t relative_die_offset) const override
DWARFDebugInfoEntry m_first_die
size_t GetDebugInfoSize() const
dw_offset_t GetOffset() const
const DIERef::Section m_section
uint8_t GetAddressByteSize() const override
dw_offset_t GetNextUnitOffset() const
DWARFDataExtractor GetLocationData() const
const std::optional< llvm::DWARFDebugRnglistTable > & GetRnglistTable()
const FileSpec & GetAbsolutePath()
llvm::Expected< uint64_t > GetRnglistOffset(uint32_t Index)
Return a rangelist's offset based on an index.
std::unique_ptr< DWARFDebugAranges > m_func_aranges_up
dw_offset_t m_str_offsets_base
dw_addr_t m_ranges_base
Value of DW_AT_rnglists_base.
bool Supports_unnamed_objc_bitfields()
dw_addr_t m_loclists_base
Value of DW_AT_loclists_base.
lldb::offset_t GetVendorDWARFOpcodeSize(const DataExtractor &data, const lldb::offset_t data_offset, const uint8_t op) const override
void SetRangesBase(dw_addr_t ranges_base)
dw_addr_t GetAddrBase() const
uint32_t GetHeaderByteSize() const
Get the size in bytes of the unit header.
ScopedExtractDIEs ExtractDIEsScoped()
bool ParseDWARFLocationList(const DataExtractor &data, DWARFExpressionList &loc_list) const
void SetAddrBase(dw_addr_t addr_base)
void ExtractDIEsRWLocked()
void SetDwoError(Status &&error)
Set the fission .dwo file specific error for this compile unit.
std::optional< llvm::DWARFListTableHeader > m_loclist_table_header
SymbolFileDWARF & m_dwarf
llvm::VersionTuple GetProducerVersion()
static uint8_t GetDefaultAddressSize()
uint64_t GetDWARFLanguageType()
void ComputeAbsolutePath()
std::optional< uint64_t > m_dwo_id
Value of DW_AT_GNU_dwo_id (v4) or dwo_id from CU header (v5).
llvm::Expected< llvm::DWARFAddressRangesVector > FindRnglistFromIndex(uint32_t index)
Return a list of address ranges retrieved from an encoded range list whose offset is found via a tabl...
std::shared_ptr< DWARFUnit > m_dwo
std::optional< uint64_t > m_gnu_addr_base
DWARFUnit(SymbolFileDWARF &dwarf, lldb::user_id_t uid, const llvm::DWARFUnitHeader &header, const llvm::DWARFAbbreviationDeclarationSet &abbrevs, DIERef::Section section, bool is_dwo)
llvm::VersionTuple m_producer_version
std::optional< uint64_t > GetStringOffsetSectionItem(uint32_t index) const
DWARFUnit & GetNonSkeletonUnit()
DWARFDIE GetDIE(dw_offset_t die_offset)
lldb::ByteOrder GetByteOrder() const
void AddUnitDIE(const DWARFDebugInfoEntry &cu_die)
llvm::sys::RWMutex m_first_die_mutex
SymbolFileDWARFDwo * GetDwoSymbolFile(bool load_all_debug_info=true)
bool m_has_parsed_non_skeleton_unit
DWARFProducer GetProducer()
uint16_t GetVersion() const override
const FileSpec & GetCompilationDirectory()
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_...
llvm::DWARFUnitHeader m_header
const llvm::DWARFAbbreviationDeclarationSet * GetAbbreviations() const
bool HasAny(llvm::ArrayRef< dw_tag_t > tags)
Returns true if any DIEs in the unit match any DW_TAG values in tags.
std::atomic< DWARFUnit * > m_skeleton_unit
dw_addr_t ReadAddressFromDebugAddrSection(uint32_t index) const override
DWARFDataExtractor GetRnglistData() const
FileSpec GetFile(size_t file_idx)
SymbolFileDWARF & GetBaseSymbolFile() const
DWARFUnit * GetSkeletonUnit(DWARFUnit *dwo_unit)
Given a DWO DWARFUnit, find the corresponding skeleton DWARFUnit in the main symbol file.
virtual lldb::offset_t GetVendorDWARFOpcodeSize(const DataExtractor &data, const lldb::offset_t data_offset, const uint8_t op) const
DWARFContext & GetDWARFContext()
virtual bool ParseVendorDWARFOpcode(uint8_t op, const DataExtractor &opcodes, lldb::offset_t &offset, RegisterContext *reg_ctx, lldb::RegisterKind reg_kind, std::vector< Value > &stack) const
#define DW_INVALID_OFFSET
llvm::dwarf::Attribute dw_attr_t
#define LLDB_INVALID_ADDRESS
std::shared_ptr< DWARFUnit > DWARFUnitSP
A class that represents a running process on the host machine.
Log * GetLog(Cat mask)
Retrieve the Log object for the channel associated with the given log enum.
const char * toString(AppleArm64ExceptionClass EC)
ByteOrder
Byte ordering definitions.
RegisterKind
Register numbering types.
UserID(lldb::user_id_t uid=LLDB_INVALID_UID)
Construct with optional user ID.