Class DWARFFile
java.lang.Object
ghidra.app.util.bin.format.dwarf.line.DWARFFile
DWARFFile is used to store file or directory entries in the DWARFLine.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
byte[]
getMD5()
long
getName()
static DWARFFile
readV4
(BinaryReader reader) Reads a DWARFFile entry.static DWARFFile
readV5
(BinaryReader reader, List<DWARFLineContentType.Def> defs, DWARFCompilationUnit cu) Reads a DWARFFile entry.toString()
-
Constructor Details
-
DWARFFile
-
DWARFFile
Create a new DWARF file entry with the given parameters.- Parameters:
name
- name of the filedirectory_index
- index of the directory for this filemodification_time
- modification time of the filelength
- length of the file
-
-
Method Details
-
readV4
Reads a DWARFFile entry.- Parameters:
reader
- BinaryReader- Returns:
- new DWARFFile, or null if end-of-list was found
- Throws:
IOException
- if error reading
-
readV5
public static DWARFFile readV5(BinaryReader reader, List<DWARFLineContentType.Def> defs, DWARFCompilationUnit cu) throws IOException Reads a DWARFFile entry.- Parameters:
reader
- BinaryReaderdefs
- similar to a DIE's attributespec, a list of DWARFForms that define how values will be deserialized from the streamcu
-DWARFCompilationUnit
- Returns:
- new DWARFFile
- Throws:
IOException
- if error reading
-
getName
-
withName
-
getDirectoryIndex
public int getDirectoryIndex() -
getModificationTime
public long getModificationTime() -
getMD5
public byte[] getMD5() -
toString
-