Class DWARFCompileUnit
java.lang.Object
ghidra.app.util.bin.format.dwarf4.DWARFCompileUnit
DWARFCompileUnit hold some values retrieved from a DWARF DW_TAG_compile_unit DIE.
-
Constructor Summary
ConstructorsConstructorDescriptionDWARFCompileUnit
(String name, String producer, String comp_dir, Number low_pc, Number high_pc, Number language, DWARFIdentifierCase identifier_case, boolean hasDWO, DWARFLine line) -
Method Summary
Modifier and TypeMethodDescriptionGet the compile directory of the compile unitgetFileByIndex
(int index) Get a file name based on a file index.Get the filename of the compile unitgetFullFileByIndex
(int index) Get a file name with the full path included based on a file index.Get the high PC value of the compile unitGet the identifier case of the compile unitint
Get the source language of the compile unit.getLowPC()
Get the low PC value of the compile unitgetName()
Get the name of the compile unitGet the producer of the compile unitboolean
hasDWO()
static DWARFCompileUnit
read
(DIEAggregate diea) toString()
-
Constructor Details
-
DWARFCompileUnit
-
-
Method Details
-
read
- Throws:
IOException
DWARFException
-
getName
Get the name of the compile unit- Returns:
- the name of the compile unit
-
getFileName
Get the filename of the compile unit- Returns:
- the filename of the compile unit
-
getFullFileByIndex
Get a file name with the full path included based on a file index.- Parameters:
index
- index of the file- Returns:
- file name with full path or null if line information does not exist
- Throws:
IllegalArgumentException
- if a negative or invalid file index is given
-
getFileByIndex
Get a file name based on a file index.- Parameters:
index
- index of the file- Returns:
- file name or null if line information does not exist
- Throws:
IllegalArgumentException
- if a negative or invalid file index is given
-
getProducer
Get the producer of the compile unit- Returns:
- the producer of the compile unit
-
getCompileDirectory
Get the compile directory of the compile unit- Returns:
- the compile directory of the compile unit
-
getHighPC
Get the high PC value of the compile unit- Returns:
- the high PC value of the compile unit
-
getLowPC
Get the low PC value of the compile unit- Returns:
- the low PC value of the compile unit
-
getLanguage
public int getLanguage()Get the source language of the compile unit.See
DWARFSourceLanguage
for values.- Returns:
- the source language of the compile unit
-
getIdentifierCase
Get the identifier case of the compile unit- Returns:
- the identifier case of the compile unit
-
hasDWO
public boolean hasDWO() -
toString
-