Package ghidra.app.util.bin.format.dwarf
Class DWARFStringOffsetTableHeader
java.lang.Object
ghidra.app.util.bin.format.dwarf.DWARFIndirectTableHeader
ghidra.app.util.bin.format.dwarf.DWARFStringOffsetTableHeader
Table of offsets that point into the string table. These tables are stored sequentially in the
.debug_str_offsets
section.
Elements in the table are referred to by index via DWARFForm.DW_FORM_strx
and friends.
The table's DWARFIndirectTableHeader.getFirstElementOffset()
is referred to by a compUnit's
DWARFAttribute.DW_AT_str_offsets_base
value.
-
Field Summary
Fields inherited from class ghidra.app.util.bin.format.dwarf.DWARFIndirectTableHeader
endOffset, firstElementOffset, startOffset
-
Constructor Summary
ConstructorDescriptionDWARFStringOffsetTableHeader
(long startOffset, long endOffset, long firstElementOffset, int intSize, int count) -
Method Summary
Modifier and TypeMethodDescriptionlong
getOffset
(int index, BinaryReader reader) static DWARFStringOffsetTableHeader
readV5
(BinaryReader reader, int defaultIntSize) Reads a string offset table header (found in the .debug_str_offsets section)Methods inherited from class ghidra.app.util.bin.format.dwarf.DWARFIndirectTableHeader
getEndOffset, getFirstElementOffset, getStartOffset
-
Constructor Details
-
DWARFStringOffsetTableHeader
public DWARFStringOffsetTableHeader(long startOffset, long endOffset, long firstElementOffset, int intSize, int count)
-
-
Method Details
-
readV5
public static DWARFStringOffsetTableHeader readV5(BinaryReader reader, int defaultIntSize) throws IOException Reads a string offset table header (found in the .debug_str_offsets section)- Parameters:
reader
-BinaryReader
- Returns:
- new
DWARFStringOffsetTableHeader
instance - Throws:
IOException
- if error reading
-
getOffset
- Specified by:
getOffset
in classDWARFIndirectTableHeader
- Throws:
IOException
-