Package ghidra.program.model.lang
Interface ProcessorContextView
- All Known Subinterfaces:
DisassemblerContext
,DisassemblerContextAdapter
,Instruction
,ProcessorContext
- All Known Implementing Classes:
AssemblyDefaultContext
,DisassemblerContextImpl
,EmulateDisassemblerContext
,InstructionDB
,InstructionStub
,JitPassage.DecodeErrorInstruction
,ProcessorContextImpl
,ProgramProcessorContext
,PseudoDisassemblerContext
,PseudoInstruction
,ReadOnlyProcessorContext
,ReDisassembler.ReDisassemblerContext
,VarnodeContext
public interface ProcessorContextView
Defines the interface for an object containing the state
of all processor registers relative to a specific address.
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
dumpContextValue
(RegisterValue value, String indent) static void
dumpContextValue
(RegisterValue value, String indent, StringBuilder buf) getRegister
(String name) Get a Register given the name of a registerReturns all the Registers for the processor as an unmodifiable listgetRegisterValue
(Register register) Get the RegisterValue for the given register.Get the contents of a processor register as a BigInteger objectboolean
Returns true if a value is defined for the given register.
-
Method Details
-
getBaseContextRegister
Register getBaseContextRegister()- Returns:
- the base processor context register or null if one has not been defined
-
getRegisters
Returns all the Registers for the processor as an unmodifiable list- Returns:
- all the Registers for the processor
-
getRegister
Get a Register given the name of a register- Parameters:
name
- the name of the register.- Returns:
- The register with the given name.
-
getValue
Get the contents of a processor register as a BigInteger object- Parameters:
register
- register to get the value for- Returns:
- a BigInteger object containing the value of the register if a value exists, otherwise null.
-
getRegisterValue
Get the RegisterValue for the given register.- Parameters:
register
- register to get the value for- Returns:
- RegisterValue object containing the value of the register if a value exists, otherwise null.
-
hasValue
Returns true if a value is defined for the given register.- Parameters:
register
- the register to check for a value.- Returns:
- true if the given register has a value.
-
dumpContextValue
-
dumpContextValue
-