Package ghidra.program.model.lang
Interface DisassemblerContext
- All Superinterfaces:
ProcessorContext,ProcessorContextView
- All Known Subinterfaces:
DisassemblerContextAdapter
- All Known Implementing Classes:
AssemblyDefaultContext,DisassemblerContextImpl,EmulateDisassemblerContext,PseudoDisassemblerContext,ReDisassembler.ReDisassemblerContext
-
Method Summary
Modifier and TypeMethodDescriptionvoidsetFutureRegisterValue(Address fromAddr, Address toAddr, RegisterValue value) Combinesvaluewith any previously saved future register value atfromAddr/toAddror any value stored in the program if there is no previously saved future value.voidsetFutureRegisterValue(Address address, RegisterValue value) Combinesvaluewith any previously saved future register value ataddressor any value stored in the program if there is no previously saved future value.Methods inherited from interface ghidra.program.model.lang.ProcessorContext
clearRegister, setRegisterValue, setValueMethods inherited from interface ghidra.program.model.lang.ProcessorContextView
getBaseContextRegister, getRegister, getRegisters, getRegisterValue, getValue, hasValue
-
Method Details
-
setFutureRegisterValue
Combinesvaluewith any previously saved future register value ataddressor any value stored in the program if there is no previously saved future value. Use this method when multiple flows to the same address don't matter or the flowing from address is unknown.
Whenvaluehas conflicting bits with the previously saved value,valuewill take precedence.
If the register value is the value for the processor context register and a previously saved value does not exist, the user saved values in the stored context of the program will be used as existing value.- Parameters:
address- the address to store the register valuevalue- the register value to store at the address
-
setFutureRegisterValue
Combinesvaluewith any previously saved future register value atfromAddr/toAddror any value stored in the program if there is no previously saved future value.
Whenvaluehas conflicting bits with the previously saved value,valuewill take precedence.
If the register value is the value for the processor context register and a previously saved value does not exist, the user saved values in the stored context of the program will be used as existing value.- Parameters:
fromAddr- the address this value if flowing fromtoAddr- the address to store the register valuevalue- the register value to store at the address
-