Class DwarfDecodeContext
java.lang.Object
ghidra.app.plugin.exceptionhandlers.gcc.DwarfDecodeContext
Organizational class to record vital data used by a DwarfEHDecoder.
-
Constructor Summary
ConstructorDescriptionDwarfDecodeContext
(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.DwarfDecodeContext
(MemBuffer buffer, int length) Constructs a Dwarf decode context.DwarfDecodeContext
(MemBuffer buf, int length, MemoryBlock ehBlock, Address entryPoint) Constructs a Dwarf decode context. -
Method Summary
Modifier 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.int
Gets the length of the encoded data that is at the address.Gets the associated function's entry point.Gets the program containing the encoded data.void
setDecodedValue
(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
-
DwarfDecodeContext
Constructs a Dwarf decode context.- Parameters:
buffer
- the memory buffer which provides the program and address of the encoded datalength
- the length of the encoded data
-
DwarfDecodeContext
Constructs a Dwarf decode context.- Parameters:
buf
- the memory buffer which provides the program and address of the encoded datalength
- the length of the encoded dataehBlock
- the exception handling memory blockentryPoint
- the function 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
-