Class StatementProgramPrologue
java.lang.Object
ghidra.app.util.bin.format.dwarf.line.StatementProgramPrologue
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDirectoryByIndex
(long directoryIndex) The directory index represents an entry in the include directories section.getFileNameByIndex
(int fileIndex) Returns the file entry at the given index.int
Returns the line base value.int
Returns the line range value.int
Returns the size in bytes of the smallest target machine instruction.int
Returns the number assigned to the first special opcode.int
Returns the number of bytes following the prologue_length field to the beginning of the first byte of the statement program itself.byte[]
return the array for each of the standard opcodesint
Returns the size in bytes of the statement information for this compilation unit (not including the total_length field itself).int
Returns the version identifier for the statement information format.boolean
Returns the initial value of the is_stmt register.
-
Field Details
-
TOTAL_LENGTH_FIELD_LEN
public static final int TOTAL_LENGTH_FIELD_LEN- See Also:
-
PRE_PROLOGUE_LEN
public static final int PRE_PROLOGUE_LEN- See Also:
-
-
Constructor Details
-
StatementProgramPrologue
- Throws:
IOException
-
-
Method Details
-
getTotalLength
public int getTotalLength()Returns the size in bytes of the statement information for this compilation unit (not including the total_length field itself).- Returns:
- size in bytes of the statement information
-
getVersion
public int getVersion()Returns the version identifier for the statement information format.- Returns:
- the version identifier for the statement information format
-
getPrologueLength
public int getPrologueLength()Returns the number of bytes following the prologue_length field to the beginning of the first byte of the statement program itself.- Returns:
- the number of bytes following the prologue_length
-
getMinimumInstructionLength
public int getMinimumInstructionLength()Returns the size in bytes of the smallest target machine instruction. Statement program opcodes that alter the address register first multiply their operands by this value.- Returns:
- the size in bytes of the smallest target machine instruction
-
isDefaultIsStatement
public boolean isDefaultIsStatement()Returns the initial value of the is_stmt register.- Returns:
- the initial value of the is_stmt register
-
getLineBase
public int getLineBase()Returns the line base value. This parameter affects the meaning of the special opcodes. See below.- Returns:
- the line base value
-
getLineRange
public int getLineRange()Returns the line range value. This parameter affects the meaning of the special opcodes. See below.- Returns:
- the line range value
-
getOpcodeBase
public int getOpcodeBase()Returns the number assigned to the first special opcode.- Returns:
- the number assigned to the first special opcode
-
getStandardOpcodeLengths
public byte[] getStandardOpcodeLengths()return the array for each of the standard opcodes- Returns:
- the array for each of the standard opcodes
-
getIncludeDirectories
- Returns:
- each path that was searched for included source files
-
getFileNames
- Returns:
- an entry for each source file that contributed to the statement
-
getFileNameByIndex
Returns the file entry at the given index.- Parameters:
fileIndex
- the file index- Returns:
- the file entry at the given index
-
getDirectoryByIndex
The directory index represents an entry in the include directories section. If the directoryIndex is LEB128(0), then the file was found in the current directory.- Parameters:
directoryIndex
- the directory index- Returns:
- the directory or current directory
-