Package ghidra.app.util.bin.format.dwarf
Class DWARFRangeList
java.lang.Object
ghidra.app.util.bin.format.dwarf.DWARFRangeList
Represents a list of
DWARFRanges.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDWARFRangeList(DWARFRange singleRange) DWARFRangeList(List<DWARFRange> ranges) -
Method Summary
Modifier and TypeMethodDescriptionget(int index) getFirst()longgetLast()intbooleanisEmpty()ranges()static DWARFRangeListreadV4(BinaryReader reader, DWARFCompilationUnit cu) Reads a v4DWARFRangeListfrom the .debug_ranges stream.static DWARFRangeListreadV5(BinaryReader reader, DWARFCompilationUnit cu) Reads a v5DWARFRangeListfrom 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 v4DWARFRangeListfrom 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 v5DWARFRangeListfrom 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
-