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()
141 dwo_symbol_file->GetDWARFContext().getOrLoadLocListsData().GetByteSize() >
148 m_dwo = std::shared_ptr<DWARFUnit>(std::move(dwo_symbol_file), dwo_cu);
194 llvm::sys::ScopedLock lock(
m_cu->m_die_array_scoped_mutex);
195 ++
m_cu->m_die_array_scoped_count;
201 llvm::sys::ScopedLock lock(
m_cu->m_die_array_scoped_mutex);
202 --
m_cu->m_die_array_scoped_count;
204 !
m_cu->m_cancel_scopes) {
205 llvm::sys::ScopedWriter lock(
m_cu->m_die_array_mutex);
206 m_cu->ClearDIEsRWLocked();
230 llvm::formatv(
"{0:x16}: DWARFUnit::ExtractDIEsIfNeeded()",
GetOffset())
239 m_dwo->ExtractDIEsIfNeeded();
256 std::vector<uint32_t> die_index_stack;
257 die_index_stack.reserve(32);
258 die_index_stack.push_back(0);
259 bool prev_die_had_children =
false;
260 while (offset < next_cu_offset && die.
Extract(data, *
this, &offset)) {
261 const bool null_die = die.
IsNULL();
263 assert(
m_die_array.empty() &&
"Compile unit DIE already added");
291 if (prev_die_had_children) {
302 if (die_index_stack.back())
303 m_die_array[die_index_stack.back()].SetSiblingIndex(
313 if (!die_index_stack.empty())
314 die_index_stack.pop_back();
318 prev_die_had_children =
false;
323 if (die_has_children) {
324 die_index_stack.push_back(0);
327 prev_die_had_children = die_has_children;
364 if (
const llvm::DWARFUnitIndex::Entry *entry =
m_header.getIndexEntry()) {
365 if (
const auto *contribution =
366 entry->getContribution(llvm::DW_SECT_STR_OFFSETS))
367 baseOffset = contribution->getOffset();
379 llvm::dwarf::DwarfFormat format;
380 std::tie(length, format) = strOffsets.getInitialLength(&baseOffset);
383 if (strOffsets.getU16(&baseOffset) < 5)
403 for (
size_t i = 0; i < attributes.
Size(); ++i) {
413 for (
size_t i = 0; i < attributes.
Size(); ++i) {
421 case DW_AT_loclists_base:
424 case DW_AT_rnglists_base:
427 case DW_AT_str_offsets_base:
447 case DW_AT_stmt_list:
450 case DW_AT_GNU_addr_base:
453 case DW_AT_GNU_ranges_base:
456 case DW_AT_GNU_dwo_id:
473const llvm::DWARFAbbreviationDeclarationSet *
491template <
typename ListTableType>
492static llvm::Expected<ListTableType>
494 DwarfFormat format) {
502 return ListTableType();
505 uint64_t HeaderSize = llvm::DWARFListTableHeader::getHeaderSize(format);
506 if (offset < HeaderSize)
507 return llvm::createStringError(std::errc::invalid_argument,
508 "did not detect a valid"
509 " list table with base = 0x%" PRIx64
"\n",
511 offset -= HeaderSize;
513 if (llvm::Error E = Table.extractHeaderAndOffsets(data, &offset))
520 if (
const llvm::DWARFUnitIndex::Entry *entry =
m_header.getIndexEntry()) {
521 const auto *contribution = entry->getContribution(llvm::DW_SECT_LOCLISTS);
524 "Failed to find location list contribution for CU with DWO Id "
529 offset += contribution->getOffset();
533 uint64_t header_size =
535 if (loclists_base < header_size)
539 offset += loclists_base - header_size;
541 m_dwarf.GetDWARFContext().getOrLoadLocListsData().GetAsLLVMDWARF(),
544 "Failed to extract location list table at offset {0:x16} (location "
545 "list base: {1:x16}): {2}",
546 offset, loclists_base,
toString(std::move(E)).c_str());
550std::unique_ptr<llvm::DWARFLocationTable>
552 llvm::DWARFDataExtractor llvm_data(
557 return std::make_unique<llvm::DWARFDebugLoclists>(llvm_data,
GetVersion());
558 return std::make_unique<llvm::DWARFDebugLoc>(llvm_data);
565 if (
const llvm::DWARFUnitIndex::Entry *entry =
m_header.getIndexEntry()) {
566 if (
const auto *contribution = entry->getContribution(
567 GetVersion() >= 5 ? llvm::DW_SECT_LOCLISTS : llvm::DW_SECT_EXT_LOC))
569 contribution->getLength32());
578 if (
const llvm::DWARFUnitIndex::Entry *entry =
m_header.getIndexEntry()) {
579 if (
const auto *contribution =
580 entry->getContribution(llvm::DW_SECT_RNGLISTS))
582 contribution->getLength32());
584 "Failed to find range list contribution for CU with signature {0:x16}",
585 entry->getSignature());
598const std::optional<llvm::DWARFDebugRnglistTable> &
602 if (
auto table_or_error =
609 "Failed to extract range list table at offset {0:x16}: {1}",
618 return llvm::createStringError(std::errc::invalid_argument,
619 "missing or invalid range list table");
621 return llvm::createStringError(
622 std::errc::invalid_argument,
623 llvm::formatv(
"DW_FORM_rnglistx cannot be used without "
624 "DW_AT_rnglists_base for CU at {0:x16}",
631 return llvm::createStringError(
632 std::errc::invalid_argument,
633 "invalid range list table index %u; OffsetEntryCount is %u, "
634 "DW_AT_rnglists_base is %" PRIu64,
647 m_dwarf.GetDWARFContext().getOrLoadAddrData();
648 if (data.ValidOffsetForDataOfSize(offset, index_size))
649 return data.GetMaxU64_unchecked(&offset, index_size);
659 m_dwo->ClearDIEsRWLocked();
663 return m_dwarf.GetObjectFile()->GetByteOrder();
686 "GetDIE for DIE {0:x16} is outside of its CU {1:x16}", die_offset,
696 if (pos != end && die_offset == (*pos).GetOffset())
704 return llvm::StringRef();
707 if (
const char *name =
712 for (
auto attr : {DW_AT_specification, DW_AT_abstract_origin}) {
718 if (
auto name = unit->PeekDIEName(offset); !name.empty())
722 return llvm::StringRef();
725llvm::Expected<std::pair<uint64_t, llvm::dwarf::TypeKind>>
729 const uint64_t abs_die_offset = relative_die_offset +
GetOffset();
733 return llvm::createStringError(
"cannot resolve DW_OP_convert type DIE");
734 if (die.
Tag() != DW_TAG_base_type)
735 return llvm::createStringError(
736 "DW_OP_convert type DIE is not a DW_TAG_base_type");
743 return llvm::createStringError(
"unsupported type size");
746 case DW_ATE_signed_char:
747 case DW_ATE_unsigned:
748 case DW_ATE_unsigned_char:
752 return llvm::createStringError(
"unsupported encoding");
754 return std::pair{bit_size,
static_cast<TypeKind
>(encoding)};
760 const uint8_t op)
const {
765 const llvm::DataExtractor &opcodes,
769 std::vector<Value> &stack)
const {
771 reg_ctx, reg_kind, stack);
776 location_list.
Clear();
777 std::unique_ptr<llvm::DWARFLocationTable> loctable_up =
781 [&](uint32_t index) -> std::optional<llvm::object::SectionedAddress> {
785 return llvm::object::SectionedAddress{address};
787 auto process_list = [&](llvm::Expected<llvm::DWARFLocationExpression> loc) {
793 std::make_shared<DataBufferHeap>(loc->Expr.data(), loc->Expr.size());
796 location_list.
AddExpression(loc->Range->LowPC, loc->Range->HighPC, expr);
799 llvm::Error
error = loctable_up->visitAbsoluteLocationList(
802 location_list.
Sort();
832 if (candidate_skeleton_unit)
836 return llvm::dyn_cast_or_null<DWARFCompileUnit>(
m_skeleton_unit.load());
841 if (
m_skeleton_unit.compare_exchange_strong(expected_unit, &skeleton_unit))
843 if (expected_unit == &skeleton_unit) {
863 llvm::StringRef producer(
865 if (producer.empty())
869 R
"(swiftlang-([0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?(\.[0-9]+)?))"));
871 llvm::StringRef(R
"(clang-([0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?))"));
873 llvm::SmallVector<llvm::StringRef, 3> matches;
874 if (g_swiftlang_version_regex.
Execute(producer, &matches)) {
877 }
else if (producer.contains(
"clang")) {
878 if (g_clang_version_regex.
Execute(producer, &matches))
881 }
else if (producer.contains(
"GNU")) {
943 return m_dwarf.GetFile(*
this, file_idx);
948static llvm::StringRef
950 if (!path_from_dwarf.contains(
':'))
951 return path_from_dwarf;
952 llvm::StringRef host, path;
953 std::tie(host, path) = path_from_dwarf.split(
':');
955 if (host.contains(
'/'))
956 return path_from_dwarf;
960 if (host.size() == 1 && llvm::isAlpha(host[0]) &&
961 (path.starts_with(
"\\") || path.starts_with(
"/")))
962 return path_from_dwarf;
975 if (!comp_dir.empty()) {
1004 if (load_all_debug_info)
1007 return &llvm::cast<SymbolFileDWARFDwo>(
m_dwo->GetSymbolFileDWARF());
1025 const bool minimize =
false;
1031llvm::Expected<DWARFUnitSP>
1041 llvm::DWARFSectionKind section_kind_llvm =
1043 ? llvm::DWARFSectionKind::DW_SECT_INFO
1044 : llvm::DWARFSectionKind::DW_SECT_EXT_TYPES;
1046 llvm::DWARFDataExtractor debug_info_llvm = debug_info.
GetAsLLVMDWARF();
1047 llvm::DWARFUnitHeader header;
1048 if (llvm::Error extract_err = header.extract(
1049 context.
GetAsLLVM(), debug_info_llvm, offset_ptr, section_kind_llvm))
1050 return std::move(extract_err);
1052 if (context.
isDwo()) {
1053 const llvm::DWARFUnitIndex::Entry *entry =
nullptr;
1054 const llvm::DWARFUnitIndex &index = header.isTypeUnit()
1058 if (header.isTypeUnit())
1059 entry = index.getFromHash(header.getTypeHash());
1060 else if (
auto dwo_id = header.getDWOId())
1061 entry = index.getFromHash(*dwo_id);
1064 entry = index.getFromOffset(header.getOffset());
1066 if (llvm::Error err = header.applyIndexEntry(entry))
1067 return std::move(err);
1070 const llvm::DWARFDebugAbbrev *abbr =
dwarf.DebugAbbrev();
1072 return llvm::make_error<llvm::object::GenericBinaryError>(
1073 "No debug_abbrev data");
1075 bool abbr_offset_OK =
1076 dwarf.GetDWARFContext().getOrLoadAbbrevData().ValidOffset(
1077 header.getAbbrOffset());
1078 if (!abbr_offset_OK)
1079 return llvm::make_error<llvm::object::GenericBinaryError>(
1080 "Abbreviation offset for unit is not valid");
1082 llvm::Expected<const llvm::DWARFAbbreviationDeclarationSet *> abbrevs_or_err =
1083 abbr->getAbbreviationDeclarationSet(header.getAbbrOffset());
1084 if (!abbrevs_or_err)
1085 return abbrevs_or_err.takeError();
1087 const llvm::DWARFAbbreviationDeclarationSet *abbrevs = *abbrevs_or_err;
1089 return llvm::make_error<llvm::object::GenericBinaryError>(
1090 "No abbrev exists at the specified offset.");
1092 bool is_dwo =
dwarf.GetDWARFContext().isDwo();
1093 if (header.isTypeUnit())
1102 ?
m_dwarf.GetDWARFContext().getOrLoadDebugTypesData()
1103 :
m_dwarf.GetDWARFContext().getOrLoadDebugInfoData();
1108std::optional<uint64_t>
1111 return m_dwarf.GetDWARFContext().getOrLoadStrOffsetsData().GetMaxU64(
1115llvm::Expected<llvm::DWARFAddressRangesVector>
1118 llvm::DWARFDataExtractor data =
1119 m_dwarf.GetDWARFContext().getOrLoadRangesData().GetAsLLVMDWARF();
1120 data.setAddressSize(
m_header.getAddressByteSize());
1122 llvm::DWARFDebugRangeList list;
1123 if (llvm::Error e = list.extract(data, &offset))
1125 return list.getAbsoluteRanges(
1131 return llvm::createStringError(std::errc::invalid_argument,
1132 "missing or invalid range list table");
1137 data.setAddressSize(
m_header.getAddressByteSize());
1139 if (!range_list_or_error)
1140 return range_list_or_error.takeError();
1142 return range_list_or_error->getAbsoluteRanges(
1144 [&](uint32_t index) {
1149 return llvm::object::SectionedAddress{
1150 m_dwarf.GetDWARFContext().getOrLoadAddrData().GetMaxU64(
1151 &offset, index_size)};
1155llvm::Expected<llvm::DWARFAddressRangesVector>
1159 return maybe_offset.takeError();
1166 return m_dwo->HasAny(tags);
1169 for (
const auto tag : tags) {
1170 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
llvm::Expected< std::pair< uint64_t, llvm::dwarf::TypeKind > > GetDIEBitSizeAndEncoding(uint64_t relative_die_offset) const override
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
void ExtractDIEsNoDwoRWLocked()
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
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)
virtual bool ParseVendorDWARFOpcode(uint8_t op, const llvm::DataExtractor &opcodes, lldb::offset_t &offset, RegisterContext *reg_ctx, lldb::RegisterKind reg_kind, std::vector< Value > &stack) const override
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()
dw_offset_t m_str_offset_size
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.
const llvm::dwarf::FormParams & GetFormParams() const
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
virtual bool ParseVendorDWARFOpcode(uint8_t op, const llvm::DataExtractor &opcodes, lldb::offset_t &offset, RegisterContext *reg_ctx, lldb::RegisterKind reg_kind, std::vector< Value > &stack) 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()
#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.
std::string toString(FormatterBytecode::OpCodes op)
Format
Display format definitions.
ByteOrder
Byte ordering definitions.
RegisterKind
Register numbering types.
UserID(lldb::user_id_t uid=LLDB_INVALID_UID)
Construct with optional user ID.