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();
355 if (
const llvm::DWARFUnitIndex::Entry *entry =
m_header.getIndexEntry()) {
356 if (
const auto *contribution =
357 entry->getContribution(llvm::DW_SECT_STR_OFFSETS))
358 baseOffset = contribution->getOffset();
370 llvm::dwarf::DwarfFormat format;
371 std::tie(length, format) = strOffsets.getInitialLength(&baseOffset);
374 if (strOffsets.getU16(&baseOffset) < 5)
394 for (
size_t i = 0; i < attributes.
Size(); ++i) {
404 for (
size_t i = 0; i < attributes.
Size(); ++i) {
412 case DW_AT_loclists_base:
415 case DW_AT_rnglists_base:
418 case DW_AT_str_offsets_base:
438 case DW_AT_stmt_list:
441 case DW_AT_GNU_addr_base:
444 case DW_AT_GNU_ranges_base:
447 case DW_AT_GNU_dwo_id:
464const llvm::DWARFAbbreviationDeclarationSet *
482template <
typename ListTableType>
483static llvm::Expected<ListTableType>
485 DwarfFormat format) {
493 return ListTableType();
496 uint64_t HeaderSize = llvm::DWARFListTableHeader::getHeaderSize(format);
497 if (offset < HeaderSize)
498 return llvm::createStringError(std::errc::invalid_argument,
499 "did not detect a valid"
500 " list table with base = 0x%" PRIx64
"\n",
502 offset -= HeaderSize;
504 if (llvm::Error E = Table.extractHeaderAndOffsets(data, &offset))
511 if (
const llvm::DWARFUnitIndex::Entry *entry =
m_header.getIndexEntry()) {
512 const auto *contribution = entry->getContribution(llvm::DW_SECT_LOCLISTS);
515 "Failed to find location list contribution for CU with DWO Id "
520 offset += contribution->getOffset();
524 uint64_t header_size = llvm::DWARFListTableHeader::getHeaderSize(DWARF32);
525 if (loclists_base < header_size)
529 offset += loclists_base - header_size;
531 m_dwarf.GetDWARFContext().getOrLoadLocListsData().GetAsLLVMDWARF(),
534 "Failed to extract location list table at offset {0:x16} (location "
535 "list base: {1:x16}): {2}",
536 offset, loclists_base,
toString(std::move(E)).c_str());
540std::unique_ptr<llvm::DWARFLocationTable>
542 llvm::DWARFDataExtractor llvm_data(
547 return std::make_unique<llvm::DWARFDebugLoclists>(llvm_data,
GetVersion());
548 return std::make_unique<llvm::DWARFDebugLoc>(llvm_data);
555 if (
const llvm::DWARFUnitIndex::Entry *entry =
m_header.getIndexEntry()) {
556 if (
const auto *contribution = entry->getContribution(
557 GetVersion() >= 5 ? llvm::DW_SECT_LOCLISTS : llvm::DW_SECT_EXT_LOC))
559 contribution->getLength32());
568 if (
const llvm::DWARFUnitIndex::Entry *entry =
m_header.getIndexEntry()) {
569 if (
const auto *contribution =
570 entry->getContribution(llvm::DW_SECT_RNGLISTS))
572 contribution->getLength32());
574 "Failed to find range list contribution for CU with signature {0:x16}",
575 entry->getSignature());
588const std::optional<llvm::DWARFDebugRnglistTable> &
592 if (
auto table_or_error =
598 "Failed to extract range list table at offset {0:x16}: {1}",
607 return llvm::createStringError(std::errc::invalid_argument,
608 "missing or invalid range list table");
610 return llvm::createStringError(
611 std::errc::invalid_argument,
612 llvm::formatv(
"DW_FORM_rnglistx cannot be used without "
613 "DW_AT_rnglists_base for CU at {0:x16}",
620 return llvm::createStringError(
621 std::errc::invalid_argument,
622 "invalid range list table index %u; OffsetEntryCount is %u, "
623 "DW_AT_rnglists_base is %" PRIu64,
636 m_dwarf.GetDWARFContext().getOrLoadAddrData();
637 if (data.ValidOffsetForDataOfSize(offset, index_size))
638 return data.GetMaxU64_unchecked(&offset, index_size);
648 m_dwo->ClearDIEsRWLocked();
652 return m_dwarf.GetObjectFile()->GetByteOrder();
675 "GetDIE for DIE {0:x16} is outside of its CU {1:x16}", die_offset,
685 if (pos != end && die_offset == (*pos).GetOffset())
693 return llvm::StringRef();
696 if (
const char *name =
701 for (
auto attr : {DW_AT_specification, DW_AT_abstract_origin}) {
707 if (
auto name = unit->PeekDIEName(offset); !name.empty())
711 return llvm::StringRef();
714llvm::Expected<std::pair<uint64_t, bool>>
718 const uint64_t abs_die_offset = relative_die_offset +
GetOffset();
722 return llvm::createStringError(
"cannot resolve DW_OP_convert type DIE");
729 return llvm::createStringError(
"unsupported type size");
733 case DW_ATE_signed_char:
736 case DW_ATE_unsigned:
737 case DW_ATE_unsigned_char:
741 return llvm::createStringError(
"unsupported encoding");
743 return std::pair{bit_size, sign};
749 const uint8_t op)
const {
757 std::vector<Value> &stack)
const {
759 reg_ctx, reg_kind, stack);
764 location_list.
Clear();
765 std::unique_ptr<llvm::DWARFLocationTable> loctable_up =
769 [&](uint32_t index) -> std::optional<llvm::object::SectionedAddress> {
773 return llvm::object::SectionedAddress{address};
775 auto process_list = [&](llvm::Expected<llvm::DWARFLocationExpression> loc) {
781 std::make_shared<DataBufferHeap>(loc->Expr.data(), loc->Expr.size());
784 location_list.
AddExpression(loc->Range->LowPC, loc->Range->HighPC, expr);
787 llvm::Error
error = loctable_up->visitAbsoluteLocationList(
790 location_list.
Sort();
820 if (candidate_skeleton_unit)
824 return llvm::dyn_cast_or_null<DWARFCompileUnit>(
m_skeleton_unit.load());
829 if (
m_skeleton_unit.compare_exchange_strong(expected_unit, &skeleton_unit))
831 if (expected_unit == &skeleton_unit) {
851 llvm::StringRef producer(
853 if (producer.empty())
857 llvm::StringRef(R
"(swiftlang-([0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?))"));
859 llvm::StringRef(R
"(clang-([0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?))"));
861 llvm::SmallVector<llvm::StringRef, 3> matches;
862 if (g_swiftlang_version_regex.
Execute(producer, &matches)) {
865 }
else if (producer.contains(
"clang")) {
866 if (g_clang_version_regex.
Execute(producer, &matches))
869 }
else if (producer.contains(
"GNU")) {
931 return m_dwarf.GetFile(*
this, file_idx);
936static llvm::StringRef
938 if (!path_from_dwarf.contains(
':'))
939 return path_from_dwarf;
940 llvm::StringRef host, path;
941 std::tie(host, path) = path_from_dwarf.split(
':');
943 if (host.contains(
'/'))
944 return path_from_dwarf;
948 if (host.size() == 1 && llvm::isAlpha(host[0]) &&
949 (path.starts_with(
"\\") || path.starts_with(
"/")))
950 return path_from_dwarf;
963 if (!comp_dir.empty()) {
992 if (load_all_debug_info)
995 return &llvm::cast<SymbolFileDWARFDwo>(
m_dwo->GetSymbolFileDWARF());
1013 const bool minimize =
false;
1019llvm::Expected<DWARFUnitSP>
1029 llvm::DWARFSectionKind section_kind_llvm =
1031 ? llvm::DWARFSectionKind::DW_SECT_INFO
1032 : llvm::DWARFSectionKind::DW_SECT_EXT_TYPES;
1034 llvm::DWARFDataExtractor debug_info_llvm = debug_info.
GetAsLLVMDWARF();
1035 llvm::DWARFUnitHeader header;
1036 if (llvm::Error extract_err = header.extract(
1037 context.
GetAsLLVM(), debug_info_llvm, offset_ptr, section_kind_llvm))
1038 return std::move(extract_err);
1040 if (context.
isDwo()) {
1041 const llvm::DWARFUnitIndex::Entry *entry =
nullptr;
1042 const llvm::DWARFUnitIndex &index = header.isTypeUnit()
1046 if (header.isTypeUnit())
1047 entry = index.getFromHash(header.getTypeHash());
1048 else if (
auto dwo_id = header.getDWOId())
1049 entry = index.getFromHash(*dwo_id);
1052 entry = index.getFromOffset(header.getOffset());
1054 if (llvm::Error err = header.applyIndexEntry(entry))
1055 return std::move(err);
1058 const llvm::DWARFDebugAbbrev *abbr =
dwarf.DebugAbbrev();
1060 return llvm::make_error<llvm::object::GenericBinaryError>(
1061 "No debug_abbrev data");
1063 bool abbr_offset_OK =
1064 dwarf.GetDWARFContext().getOrLoadAbbrevData().ValidOffset(
1065 header.getAbbrOffset());
1066 if (!abbr_offset_OK)
1067 return llvm::make_error<llvm::object::GenericBinaryError>(
1068 "Abbreviation offset for unit is not valid");
1070 llvm::Expected<const llvm::DWARFAbbreviationDeclarationSet *> abbrevs_or_err =
1071 abbr->getAbbreviationDeclarationSet(header.getAbbrOffset());
1072 if (!abbrevs_or_err)
1073 return abbrevs_or_err.takeError();
1075 const llvm::DWARFAbbreviationDeclarationSet *abbrevs = *abbrevs_or_err;
1077 return llvm::make_error<llvm::object::GenericBinaryError>(
1078 "No abbrev exists at the specified offset.");
1080 bool is_dwo =
dwarf.GetDWARFContext().isDwo();
1081 if (header.isTypeUnit())
1090 ?
m_dwarf.GetDWARFContext().getOrLoadDebugTypesData()
1091 :
m_dwarf.GetDWARFContext().getOrLoadDebugInfoData();
1096std::optional<uint64_t>
1099 return m_dwarf.GetDWARFContext().getOrLoadStrOffsetsData().GetMaxU64(
1103llvm::Expected<llvm::DWARFAddressRangesVector>
1106 llvm::DWARFDataExtractor data =
1107 m_dwarf.GetDWARFContext().getOrLoadRangesData().GetAsLLVMDWARF();
1108 data.setAddressSize(
m_header.getAddressByteSize());
1110 llvm::DWARFDebugRangeList list;
1111 if (llvm::Error e = list.extract(data, &offset))
1113 return list.getAbsoluteRanges(
1119 return llvm::createStringError(std::errc::invalid_argument,
1120 "missing or invalid range list table");
1125 data.setAddressSize(
m_header.getAddressByteSize());
1127 if (!range_list_or_error)
1128 return range_list_or_error.takeError();
1130 return range_list_or_error->getAbsoluteRanges(
1132 [&](uint32_t index) {
1137 return llvm::object::SectionedAddress{
1138 m_dwarf.GetDWARFContext().getOrLoadAddrData().GetMaxU64(
1139 &offset, index_size)};
1143llvm::Expected<llvm::DWARFAddressRangesVector>
1147 return maybe_offset.takeError();
1154 return m_dwo->HasAny(tags);
1157 for (
const auto tag : tags) {
1158 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()
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.
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.