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
Nested Classes - 
Method Summary
Modifier and TypeMethodDescriptionstatic DWARFLineempty()Returns a dummy DWARFLine instance that contains no information.getAllSourceFileAddrInfo(DWARFCompilationUnit cu, BinaryReader reader) getDir(int index) longgetFile(int index) Get a file name given a file index.getFilePath(int index, boolean includePath) getLineProgramexecutor(DWARFCompilationUnit cu, BinaryReader reader) intReturns the number of indexed fileslongstatic DWARFLineread(BinaryReader reader, int defaultIntSize, DWARFCompilationUnit cu) toString() 
- 
Method Details
- 
empty
Returns a dummy DWARFLine instance that contains no information.- Returns:
 DWARFLineinstance 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
 - 
getNumFiles
public int getNumFiles()Returns the number of indexed files- Returns:
 - num files
 
 - 
getFilePath
 - 
toString
 
 -