Package ghidra.program.model.lang
Interface ProcessorContext
- All Superinterfaces:
ProcessorContextView
- All Known Subinterfaces:
DisassemblerContext
,DisassemblerContextAdapter
,Instruction
- All Known Implementing Classes:
AssemblyDefaultContext
,DisassemblerContextImpl
,EmulateDisassemblerContext
,InstructionDB
,InstructionStub
,ProcessorContextImpl
,ProgramProcessorContext
,PseudoDisassemblerContext
,PseudoInstruction
,ReadOnlyProcessorContext
,ReDisassembler.ReDisassemblerContext
,VarnodeContext
Defines the interface for an object containing the state
of all processor registers relative to a specific address.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clearRegister
(Register register) Clears the register within this context.void
setRegisterValue
(RegisterValue value) Sets the specified register value within this context.void
setValue
(Register register, BigInteger value) Sets the value for a Register.Methods inherited from interface ghidra.program.model.lang.ProcessorContextView
getBaseContextRegister, getRegister, getRegisters, getRegisterValue, getValue, hasValue
-
Method Details
-
setValue
Sets the value for a Register.- Parameters:
register
- the register to have its value setvalue
- the value for the register (null is not permitted).- Throws:
ContextChangeException
- an illegal attempt to change context was made
-
setRegisterValue
Sets the specified register value within this context.- Parameters:
value
- register value- Throws:
ContextChangeException
- an illegal attempt to change context was made
-
clearRegister
Clears the register within this context.- Parameters:
register
- register to be cleared.- Throws:
ContextChangeException
- an illegal attempt to change context was made
-