Class DwarfDecodeContext
java.lang.Object
ghidra.app.plugin.exceptionhandlers.gcc.DwarfDecodeContext
Organizational class to record vital data used by a DwarfEHDecoder.
-
Constructor Summary
ConstructorsChangeConstructorDescriptionDwarfDecodeContext(Program program, Address readAddr) Constructs a Dwarf decode context.DwarfDecodeContext(Program program, Address readAddr, Address entryPoint) Constructs a Dwarf decode context.DwarfDecodeContext(Program program, Address readAddr, Function function) Constructs a Dwarf decode context.DwarfDecodeContext(Program program, Address readAddr, MemoryBlock ehBlock) Constructs a Dwarf decode context.DwarfDecodeContext(Program program, Address readAddr, MemoryBlock ehBlock, Address entryPoint) Constructs a Dwarf decode context. -
Method Summary
ChangeModifier and TypeMethodDescriptionGets the min address of the encoded data.Gets the decoded value that is at the address.Gets the exception handling memory block with this dwarf encoded data.intGets the length of the encoded data that is at the address.Gets the associated function's entry point.NEWlongReturns any adjustment needed to be applied to absolute addresses (because the program's base address was modified during import).Gets the program containing the encoded data.voidsetDecodedValue(Object value, int encodedLength) Set the value and value-length after decode
-
Constructor Details
-
DwarfDecodeContext
Constructs a Dwarf decode context.- Parameters:
program- the program containing the encoded datareadAddr- the address of the encoded data
-
DwarfDecodeContext
Constructs a Dwarf decode context.- Parameters:
program- the program containing the encoded datareadAddr- the address of the encoded dataehBlock- the exception handling memory block
-
DwarfDecodeContext
Constructs a Dwarf decode context.- Parameters:
program- the program containing the encoded datareadAddr- the address of the encoded dataentryPoint- the associated function's entry point
-
DwarfDecodeContext
Constructs a Dwarf decode context.- Parameters:
program- the program containing the encoded datareadAddr- the address of the encoded datafunction- the associated function
-
DwarfDecodeContext
public DwarfDecodeContext(Program program, Address readAddr, MemoryBlock ehBlock, Address entryPoint) Constructs a Dwarf decode context.- Parameters:
program- the program containing the encoded datareadAddr- the address of the encoded dataehBlock- the exception handling memory blockentryPoint- the associated function's entry point
-
-
Method Details
-
getProgram
Gets the program containing the encoded data.- Returns:
- the program
-
getAddress
Gets the min address of the encoded data.- Returns:
- the address
-
setDecodedValue
Set the value and value-length after decode- Parameters:
value- The integer-value having been decodedencodedLength- The length of the encoded integer-value
-
getDecodedValue
Gets the decoded value that is at the address.- Returns:
- the decoded value
-
getEncodedLength
public int getEncodedLength()Gets the length of the encoded data that is at the address.- Returns:
- the encoded data's length
-
getEhBlock
Gets the exception handling memory block with this dwarf encoded data.- Returns:
- the memory block
-
getFunctionEntryPoint
Gets the associated function's entry point.- Returns:
- the entry point address
-
getImageBaseAdjustment NEW
public long getImageBaseAdjustment()Returns any adjustment needed to be applied to absolute addresses (because the program's base address was modified during import).- Returns:
- any adjustment needed to be applied to absolute addresses (because the program's base address was modified during import)
-