26 uint64_t *offset_ptr) {
30 "invalid range list offset 0x%" PRIx64, *offset_ptr);
33 if (AddressSize != 4 && AddressSize != 8)
35 "invalid address size: %" PRIu8, AddressSize);
41 uint64_t prev_offset = *offset_ptr;
47 if (*offset_ptr != prev_offset + 2 * AddressSize) {
50 "invalid range list entry at offset 0x%" PRIx64,
55 Entries.push_back(Entry);
62 const char *format_str =
63 (AddressSize == 4 ?
"%08" PRIx64
" %08" PRIx64
" %08" PRIx64
"\n" 64 :
"%08" PRIx64
" %016" PRIx64
" %016" PRIx64
"\n");
65 OS <<
format(format_str, Offset, RLE.StartAddress, RLE.EndAddress);
67 OS <<
format(
"%08" PRIx64
" <End of list>\n", Offset);
74 if (RLE.isBaseAddressSelectionEntry(AddressSize)) {
75 BaseAddr = {RLE.EndAddress, RLE.SectionIndex};
80 E.
LowPC = RLE.StartAddress;
This class represents lattice values for constants.
uint64_t SectionIndex
A section index this range belongs to.
void dump(raw_ostream &OS) const
format_object< Ts... > format(const char *Fmt, const Ts &... Vals)
These are helper functions used to produce formatted output.
DWARFAddressRangesVector getAbsoluteRanges(llvm::Optional< object::SectionedAddress > BaseAddr) const
getAbsoluteRanges - Returns absolute address ranges defined by this range list.
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
Error extract(const DWARFDataExtractor &data, uint64_t *offset_ptr)
static ErrorSuccess success()
Create a success value.
uint64_t EndAddress
An ending address offset.
bool isEndOfListEntry() const
The end of any given range list is marked by an end of list entry, which consists of a 0 for the begi...
std::vector< DWARFAddressRange > DWARFAddressRangesVector
DWARFAddressRangesVector - represents a set of absolute address ranges.
Lightweight error class with error context and mandatory checking.
This class implements an extremely fast bulk output stream that can only output to a stream...
uint64_t StartAddress
A beginning address offset.
Error createStringError(std::error_code EC, char const *Fmt, const Ts &... Vals)
Create formatted StringError object.