mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
[lldb] Improve invalid DWARF DW_AT_ranges error reporting
In D98289#inline-939112 @dblaikie said: Perhaps this could be more informative about what makes the range list index of 0 invalid? "index 0 out of range of range list table (with range list base 0xXXX) with offset entry count of XX (valid indexes 0-(XX-1))" Maybe that's too verbose/not worth worrying about since this'll only be relevant to DWARF producers trying to debug their DWARFv5, maybe no one will ever see this message in practice. Just a thought. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D102851
This commit is contained in:
parent
8c42ad8897
commit
528de0554b
@ -94,6 +94,7 @@ public:
|
||||
uint8_t getAddrSize() const { return HeaderData.AddrSize; }
|
||||
uint64_t getLength() const { return HeaderData.Length; }
|
||||
uint16_t getVersion() const { return HeaderData.Version; }
|
||||
uint32_t getOffsetEntryCount() const { return HeaderData.OffsetEntryCount; }
|
||||
StringRef getSectionName() const { return SectionName; }
|
||||
StringRef getListTypeString() const { return ListTypeString; }
|
||||
dwarf::DwarfFormat getFormat() const { return Format; }
|
||||
@ -175,6 +176,7 @@ public:
|
||||
|
||||
uint64_t getHeaderOffset() const { return Header.getHeaderOffset(); }
|
||||
uint8_t getAddrSize() const { return Header.getAddrSize(); }
|
||||
uint32_t getOffsetEntryCount() const { return Header.getOffsetEntryCount(); }
|
||||
dwarf::DwarfFormat getFormat() const { return Header.getFormat(); }
|
||||
|
||||
void dump(DWARFDataExtractor Data, raw_ostream &OS,
|
||||
|
Loading…
Reference in New Issue
Block a user