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();
231 llvm::formatv(
"{0:x16}: DWARFUnit::ExtractDIEsIfNeeded()",
GetOffset())
246 std::vector<uint32_t> die_index_stack;
247 die_index_stack.reserve(32);
248 die_index_stack.push_back(0);
249 bool prev_die_had_children =
false;
250 while (offset < next_cu_offset && die.
Extract(data, *
this, &offset)) {
251 const bool null_die = die.
IsNULL();
253 assert(
m_die_array.empty() &&
"Compile unit DIE already added");
281 if (prev_die_had_children) {
292 if (die_index_stack.back())
293 m_die_array[die_index_stack.back()].SetSiblingIndex(
303 if (!die_index_stack.empty())
304 die_index_stack.pop_back();
308 prev_die_had_children =
false;
313 if (die_has_children) {
314 die_index_stack.push_back(0);
317 prev_die_had_children = die_has_children;
341 m_dwo->ExtractDIEsIfNeeded();
357 if (
const llvm::DWARFUnitIndex::Entry *entry =
m_header.getIndexEntry()) {
358 if (
const auto *contribution =
359 entry->getContribution(llvm::DW_SECT_STR_OFFSETS))
360 baseOffset = contribution->getOffset();
372 llvm::dwarf::DwarfFormat format;
373 std::tie(length, format) = strOffsets.getInitialLength(&baseOffset);
376 if (strOffsets.getU16(&baseOffset) < 5)
396 for (
size_t i = 0; i < attributes.
Size(); ++i) {
406 for (
size_t i = 0; i < attributes.
Size(); ++i) {
414 case DW_AT_loclists_base:
417 case DW_AT_rnglists_base:
420 case DW_AT_str_offsets_base:
440 case DW_AT_stmt_list:
443 case DW_AT_GNU_addr_base:
446 case DW_AT_GNU_ranges_base:
449 case DW_AT_GNU_dwo_id:
466const llvm::DWARFAbbreviationDeclarationSet *
484template <
typename ListTableType>
485static llvm::Expected<ListTableType>
487 DwarfFormat format) {
495 return ListTableType();
498 uint64_t HeaderSize = llvm::DWARFListTableHeader::getHeaderSize(format);
499 if (offset < HeaderSize)
500 return llvm::createStringError(std::errc::invalid_argument,
501 "did not detect a valid"
502 " list table with base = 0x%" PRIx64
"\n",
504 offset -= HeaderSize;
506 if (llvm::Error E = Table.extractHeaderAndOffsets(data, &offset))
513 if (
const llvm::DWARFUnitIndex::Entry *entry =
m_header.getIndexEntry()) {
514 const auto *contribution = entry->getContribution(llvm::DW_SECT_LOCLISTS);
517 "Failed to find location list contribution for CU with DWO Id "
522 offset += contribution->getOffset();
526 uint64_t header_size =
528 if (loclists_base < header_size)
532 offset += loclists_base - header_size;
534 m_dwarf.GetDWARFContext().getOrLoadLocListsData().GetAsLLVMDWARF(),
537 "Failed to extract location list table at offset {0:x16} (location "
538 "list base: {1:x16}): {2}",
539 offset, loclists_base,
toString(std::move(E)).c_str());
543std::unique_ptr<llvm::DWARFLocationTable>
545 llvm::DWARFDataExtractor llvm_data(
550 return std::make_unique<llvm::DWARFDebugLoclists>(llvm_data,
GetVersion());
551 return std::make_unique<llvm::DWARFDebugLoc>(llvm_data);
558 if (
const llvm::DWARFUnitIndex::Entry *entry =
m_header.getIndexEntry()) {
559 if (
const auto *contribution = entry->getContribution(
560 GetVersion() >= 5 ? llvm::DW_SECT_LOCLISTS : llvm::DW_SECT_EXT_LOC))
562 contribution->getLength32());
571 if (
const llvm::DWARFUnitIndex::Entry *entry =
m_header.getIndexEntry()) {
572 if (
const auto *contribution =
573 entry->getContribution(llvm::DW_SECT_RNGLISTS))
575 contribution->getLength32());
577 "Failed to find range list contribution for CU with signature {0:x16}",
578 entry->getSignature());
591const std::optional<llvm::DWARFDebugRnglistTable> &
595 if (
auto table_or_error =
602 "Failed to extract range list table at offset {0:x16}: {1}",
611 return llvm::createStringError(std::errc::invalid_argument,
612 "missing or invalid range list table");
614 return llvm::createStringError(
615 std::errc::invalid_argument,
616 llvm::formatv(
"DW_FORM_rnglistx cannot be used without "
617 "DW_AT_rnglists_base for CU at {0:x16}",
624 return llvm::createStringError(
625 std::errc::invalid_argument,
626 "invalid range list table index %u; OffsetEntryCount is %u, "
627 "DW_AT_rnglists_base is %" PRIu64,
640 m_dwarf.GetDWARFContext().getOrLoadAddrData();
641 if (data.ValidOffsetForDataOfSize(offset, index_size))
642 return data.GetMaxU64_unchecked(&offset, index_size);
652 m_dwo->ClearDIEsRWLocked();
656 return m_dwarf.GetObjectFile()->GetByteOrder();
679 "GetDIE for DIE {0:x16} is outside of its CU {1:x16}", die_offset,
689 if (pos != end && die_offset == (*pos).GetOffset())
697 return llvm::StringRef();
700 if (
const char *name =
705 for (
auto attr : {DW_AT_specification, DW_AT_abstract_origin}) {
711 if (
auto name = unit->PeekDIEName(offset); !name.empty())
715 return llvm::StringRef();
718llvm::Expected<std::pair<uint64_t, bool>>
722 const uint64_t abs_die_offset = relative_die_offset +
GetOffset();
726 return llvm::createStringError(
"cannot resolve DW_OP_convert type DIE");
733 return llvm::createStringError(
"unsupported type size");
737 case DW_ATE_signed_char:
740 case DW_ATE_unsigned:
741 case DW_ATE_unsigned_char:
745 return llvm::createStringError(
"unsupported encoding");
747 return std::pair{bit_size, sign};
753 const uint8_t op)
const {
761 std::vector<Value> &stack)
const {
763 reg_ctx, reg_kind, stack);
768 location_list.
Clear();
769 std::unique_ptr<llvm::DWARFLocationTable> loctable_up =
773 [&](uint32_t index) -> std::optional<llvm::object::SectionedAddress> {
777 return llvm::object::SectionedAddress{address};
779 auto process_list = [&](llvm::Expected<llvm::DWARFLocationExpression> loc) {
785 std::make_shared<DataBufferHeap>(loc->Expr.data(), loc->Expr.size());
788 location_list.
AddExpression(loc->Range->LowPC, loc->Range->HighPC, expr);
791 llvm::Error
error = loctable_up->visitAbsoluteLocationList(
794 location_list.
Sort();
824 if (candidate_skeleton_unit)
828 return llvm::dyn_cast_or_null<DWARFCompileUnit>(
m_skeleton_unit.load());
833 if (
m_skeleton_unit.compare_exchange_strong(expected_unit, &skeleton_unit))
835 if (expected_unit == &skeleton_unit) {
855 llvm::StringRef producer(
857 if (producer.empty())
861 llvm::StringRef(R
"(swiftlang-([0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?))"));
863 llvm::StringRef(R
"(clang-([0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?))"));
865 llvm::SmallVector<llvm::StringRef, 3> matches;
866 if (g_swiftlang_version_regex.
Execute(producer, &matches)) {
869 }
else if (producer.contains(
"clang")) {
870 if (g_clang_version_regex.
Execute(producer, &matches))
873 }
else if (producer.contains(
"GNU")) {
935 return m_dwarf.GetFile(*
this, file_idx);
940static llvm::StringRef
942 if (!path_from_dwarf.contains(
':'))
943 return path_from_dwarf;
944 llvm::StringRef host, path;
945 std::tie(host, path) = path_from_dwarf.split(
':');
947 if (host.contains(
'/'))
948 return path_from_dwarf;
952 if (host.size() == 1 && llvm::isAlpha(host[0]) &&
953 (path.starts_with(
"\\") || path.starts_with(
"/")))
954 return path_from_dwarf;
967 if (!comp_dir.empty()) {
996 if (load_all_debug_info)
999 return &llvm::cast<SymbolFileDWARFDwo>(
m_dwo->GetSymbolFileDWARF());
1017 const bool minimize =
false;
1023llvm::Expected<DWARFUnitSP>
1033 llvm::DWARFSectionKind section_kind_llvm =
1035 ? llvm::DWARFSectionKind::DW_SECT_INFO
1036 : llvm::DWARFSectionKind::DW_SECT_EXT_TYPES;
1038 llvm::DWARFDataExtractor debug_info_llvm = debug_info.
GetAsLLVMDWARF();
1039 llvm::DWARFUnitHeader header;
1040 if (llvm::Error extract_err = header.extract(
1041 context.
GetAsLLVM(), debug_info_llvm, offset_ptr, section_kind_llvm))
1042 return std::move(extract_err);
1044 if (context.
isDwo()) {
1045 const llvm::DWARFUnitIndex::Entry *entry =
nullptr;
1046 const llvm::DWARFUnitIndex &index = header.isTypeUnit()
1050 if (header.isTypeUnit())
1051 entry = index.getFromHash(header.getTypeHash());
1052 else if (
auto dwo_id = header.getDWOId())
1053 entry = index.getFromHash(*dwo_id);
1056 entry = index.getFromOffset(header.getOffset());
1058 if (llvm::Error err = header.applyIndexEntry(entry))
1059 return std::move(err);
1062 const llvm::DWARFDebugAbbrev *abbr =
dwarf.DebugAbbrev();
1064 return llvm::make_error<llvm::object::GenericBinaryError>(
1065 "No debug_abbrev data");
1067 bool abbr_offset_OK =
1068 dwarf.GetDWARFContext().getOrLoadAbbrevData().ValidOffset(
1069 header.getAbbrOffset());
1070 if (!abbr_offset_OK)
1071 return llvm::make_error<llvm::object::GenericBinaryError>(
1072 "Abbreviation offset for unit is not valid");
1074 llvm::Expected<const llvm::DWARFAbbreviationDeclarationSet *> abbrevs_or_err =
1075 abbr->getAbbreviationDeclarationSet(header.getAbbrOffset());
1076 if (!abbrevs_or_err)
1077 return abbrevs_or_err.takeError();
1079 const llvm::DWARFAbbreviationDeclarationSet *abbrevs = *abbrevs_or_err;
1081 return llvm::make_error<llvm::object::GenericBinaryError>(
1082 "No abbrev exists at the specified offset.");
1084 bool is_dwo =
dwarf.GetDWARFContext().isDwo();
1085 if (header.isTypeUnit())
1094 ?
m_dwarf.GetDWARFContext().getOrLoadDebugTypesData()
1095 :
m_dwarf.GetDWARFContext().getOrLoadDebugInfoData();
1100std::optional<uint64_t>
1103 return m_dwarf.GetDWARFContext().getOrLoadStrOffsetsData().GetMaxU64(
1107llvm::Expected<llvm::DWARFAddressRangesVector>
1110 llvm::DWARFDataExtractor data =
1111 m_dwarf.GetDWARFContext().getOrLoadRangesData().GetAsLLVMDWARF();
1112 data.setAddressSize(
m_header.getAddressByteSize());
1114 llvm::DWARFDebugRangeList list;
1115 if (llvm::Error e = list.extract(data, &offset))
1117 return list.getAbsoluteRanges(
1123 return llvm::createStringError(std::errc::invalid_argument,
1124 "missing or invalid range list table");
1129 data.setAddressSize(
m_header.getAddressByteSize());
1131 if (!range_list_or_error)
1132 return range_list_or_error.takeError();
1134 return range_list_or_error->getAbsoluteRanges(
1136 [&](uint32_t index) {
1141 return llvm::object::SectionedAddress{
1142 m_dwarf.GetDWARFContext().getOrLoadAddrData().GetMaxU64(
1143 &offset, index_size)};
1147llvm::Expected<llvm::DWARFAddressRangesVector>
1151 return maybe_offset.takeError();
1158 return m_dwo->HasAny(tags);
1161 for (
const auto tag : tags) {
1162 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.
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
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)
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.