Package ghidra.app.util.bin.format.dwarf
Class DWARFRange
java.lang.Object
ghidra.app.util.bin.format.dwarf.DWARFRange
- All Implemented Interfaces:
Comparable<DWARFRange>
Holds the start (inclusive) and end (exclusive, 1 past the last included address) addresses
of a range.
DWARF ranges are slightly different than Ghidra ranges
because the
end address of a Ghidra AddressRange is inclusive, and the DWARF range is exclusive.
DWARF ranges can represent an empty range, Ghidra AddressRanges can not.
Ghidra AddressRanges can include the maximum 64bit address (0xffffffffffffffff), but DWARF ranges
can not include that.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDWARFRange
(long start, long end) Constructs a newDWARFRange
using start and end values. -
Method Summary
-
Field Details
-
EMPTY
-
-
Constructor Details
-
DWARFRange
public DWARFRange(long start, long end) Constructs a newDWARFRange
using start and end values.- Parameters:
start
- long starting address, inclusiveend
- long ending address, exclusive
-
-
Method Details
-
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<DWARFRange>
-
isEmpty
public boolean isEmpty() -
contains
public boolean contains(long addr) -
getFrom
public long getFrom()Returns starting address.- Returns:
- long starting address
-
getTo
public long getTo()Returns ending address, exclusive.- Returns:
- long ending address, exclusive.
-