Package ghidra.app.util.bin.format.dwarf
Class DWARFRangeList
java.lang.Object
ghidra.app.util.bin.format.dwarf.DWARFRangeList
Represents a list of
DWARFRange
s.-
Field Summary
-
Constructor Summary
ConstructorDescriptionDWARFRangeList
(DWARFRange singleRange) DWARFRangeList
(List<DWARFRange> ranges) -
Method Summary
Modifier and TypeMethodDescriptionget
(int index) getFirst()
long
getLast()
int
boolean
isEmpty()
ranges()
static DWARFRangeList
readV4
(BinaryReader reader, DWARFCompilationUnit cu) Reads a v4DWARFRangeList
from the .debug_ranges stream.static DWARFRangeList
readV5
(BinaryReader reader, DWARFCompilationUnit cu) Reads a v5DWARFRangeList
from the .debug_rnglists stream.toString()
-
Field Details
-
EMTPY
-
-
Constructor Details
-
DWARFRangeList
-
DWARFRangeList
-
-
Method Details
-
readV4
public static DWARFRangeList readV4(BinaryReader reader, DWARFCompilationUnit cu) throws IOException Reads a v4DWARFRangeList
from the .debug_ranges stream.- Parameters:
reader
- stream positioned to the start of a .debug_ranges range listcu
- the compUnit referring to this range- Returns:
- new
DWARFRangeList
, never null - Throws:
IOException
- if error reading
-
readV5
public static DWARFRangeList readV5(BinaryReader reader, DWARFCompilationUnit cu) throws IOException Reads a v5DWARFRangeList
from the .debug_rnglists stream.- Parameters:
reader
- stream positioned to the start of a .debug_rnglists range listcu
- the compUnit referring to this range- Returns:
- new
DWARFRangeList
, never null - Throws:
IOException
- if error reading
-
isEmpty
public boolean isEmpty() -
getFirstAddress
public long getFirstAddress() -
getFirst
-
get
-
ranges
-
getListCount
public int getListCount() -
getLast
-
getFlattenedRange
-
toString
-