Class DWARFLine
java.lang.Object
ghidra.app.util.bin.format.dwarf4.DWARFLine
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDWARFFile is used to store file information for each entry in the line section header. -
Method Summary
Modifier and TypeMethodDescriptionGet a file name given a file index.getFullFile(int index, String compileDirectory) Get a file name with the full path included.booleanisValidFileIndex(int index) Returns true if file exists.static DWARFLineread(DIEAggregate diea) Read a DWARFLine from the compile unit's DW_AT_stmt_list location in the DebugLine stream (if present).toString()
-
Method Details
-
read
Read a DWARFLine from the compile unit's DW_AT_stmt_list location in the DebugLine stream (if present).- Parameters:
diea-DIEAggregatecompile unit DIE(a)- Returns:
- a new DWARFLine instance if DW_AT_stmt_list and stream are present, otherwise null
- Throws:
IOException- if error reading dataDWARFException- if bad DWARF values
-
getFullFile
Get a file name with the full path included.- Parameters:
index- index of the filecompileDirectory- current compile unit directory- Returns:
- file name with full path
-
getFile
Get a file name given a file index.- Parameters:
index- index of the filecompileDirectory- current compile unit directory- Returns:
- file name
-
isValidFileIndex
public boolean isValidFileIndex(int index) Returns true if file exists.- Parameters:
index- file number, excluding 0- Returns:
- boolean true if file exists
-
toString
-