Class DWARFLine
java.lang.Object
ghidra.app.util.bin.format.dwarf.line.DWARFLine
A structure read from .debug_line, contains indexed source filenames as well as a mapping between
addresses and source filename and linenumbers.
TODO: refactor this and other similar classes to derive from DWARFUnitHeader and simplify
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DWARFLine
empty()
Returns a dummy DWARFLine instance that contains no information.getAllSourceFileAddrInfo
(DWARFCompilationUnit cu, BinaryReader reader) getDir
(int index) long
getFile
(int index) Get a file name given a file index.getFilePath
(int index, boolean includePath) getLineProgramexecutor
(DWARFCompilationUnit cu, BinaryReader reader) long
static DWARFLine
read
(BinaryReader reader, int defaultIntSize, DWARFCompilationUnit cu) toString()
-
Method Details
-
empty
Returns a dummy DWARFLine instance that contains no information.- Returns:
DWARFLine
instance with no info
-
read
public static DWARFLine read(BinaryReader reader, int defaultIntSize, DWARFCompilationUnit cu) throws IOException - Throws:
IOException
-
getStartOffset
public long getStartOffset() -
getEndOffset
public long getEndOffset() -
getLineProgramexecutor
public DWARFLineProgramExecutor getLineProgramexecutor(DWARFCompilationUnit cu, BinaryReader reader) -
getAllSourceFileAddrInfo
public List<DWARFLine.SourceFileAddr> getAllSourceFileAddrInfo(DWARFCompilationUnit cu, BinaryReader reader) throws IOException - Throws:
IOException
-
getDir
- Throws:
IOException
-
getFile
Get a file name given a file index.- Parameters:
index
- index of the file- Returns:
- file
DWARFFile
- Throws:
IOException
- if invalid index
-
getFilePath
-
toString
-