Class DWARFMacroHeader
java.lang.Object
ghidra.app.util.bin.format.dwarf.macro.DWARFMacroHeader
Represents a DWARF Macro Header
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDWARFMacroHeader(long startOffset, int version, int flags, long debug_line_offset, int intSize, long entriesStartOffset, DWARFCompilationUnit cu, DWARFLine line, Map<Integer, List<DWARFForm>> opcodeMap) -
Method Summary
Modifier and TypeMethodDescriptionlonglongintgetLine()static List<DWARFMacroInfoEntry> readMacroEntries(BinaryReader reader, DWARFMacroHeader macroHeader) static DWARFMacroHeaderreadV5(BinaryReader reader, DWARFCompilationUnit cu) Reads aDWARFMacroHeaderfrom a stream.toString()
-
Field Details
-
EMTPY
-
-
Constructor Details
-
DWARFMacroHeader
-
-
Method Details
-
readV5
public static DWARFMacroHeader readV5(BinaryReader reader, DWARFCompilationUnit cu) throws IOException Reads aDWARFMacroHeaderfrom a stream.- Parameters:
reader- source of bytescu-DWARFCompilationUnitthat pointed to this macro header- Returns:
- macro header, never null
- Throws:
IOException- if reading fails
-
readMacroEntries
public static List<DWARFMacroInfoEntry> readMacroEntries(BinaryReader reader, DWARFMacroHeader macroHeader) throws IOException - Throws:
IOException
-
getLine
-
getDebug_line_offset
public long getDebug_line_offset() -
getIntSize
public int getIntSize() -
getEntriesStartOffset
public long getEntriesStartOffset() -
getEntries
- Throws:
IOException
-
getCompilationUnit
-
getOpcodeMap
-
toString
-