Class DWARFLine
- java.lang.Object
-
- ghidra.app.util.bin.format.dwarf4.DWARFLine
-
public class DWARFLine extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DWARFLine.DWARFFile
DWARFFile is used to store file information for each entry in the line section header.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFile(int index, java.lang.String compileDirectory)
Get a file name given a file index.java.lang.String
getFullFile(int index, java.lang.String compileDirectory)
Get a file name with the full path included.static DWARFLine
read(DIEAggregate diea)
Read a DWARFLine from the compile unit's DW_AT_stmt_list location in the DebugLine stream (if present).java.lang.String
toString()
-
-
-
Method Detail
-
read
public static DWARFLine read(DIEAggregate diea) throws java.io.IOException, DWARFException
Read a DWARFLine from the compile unit's DW_AT_stmt_list location in the DebugLine stream (if present).- Parameters:
diea
-DIEAggregate
compile unit DIE(a)- Returns:
- a new DWARFLine instance if DW_AT_stmt_list & stream are present, otherwise null
- Throws:
java.io.IOException
- if error reading dataDWARFException
- if bad DWARF values
-
getFullFile
public java.lang.String getFullFile(int index, java.lang.String compileDirectory)
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
public java.lang.String getFile(int index, java.lang.String compileDirectory)
Get a file name given a file index.- Parameters:
index
- index of the filecompileDirectory
- current compile unit directory- Returns:
- file name
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-