Package ghidra.program.model.listing
Class InstructionPcodeOverride
- java.lang.Object
-
- ghidra.program.model.listing.InstructionPcodeOverride
-
- All Implemented Interfaces:
PcodeOverride
public class InstructionPcodeOverride extends java.lang.Object implements PcodeOverride
-
-
Field Summary
Fields Modifier and Type Field Description protected Instruction
instr
-
Constructor Summary
Constructors Constructor Description InstructionPcodeOverride(Instruction instr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InjectPayload
getCallFixup(Address callDestAddr)
Returns the call-fixup for a specified call destination.Address
getFallThroughOverride()
Get the fall-through override address which may have been applied to the current instruction.FlowOverride
getFlowOverride()
Get the flow override which may have been applied to the current instruction.Address
getInstructionStart()
Address
getPrimaryCallReference()
Get the primary call reference address from the current instructionboolean
hasCallFixup(Address callDestAddr)
Returns the call-fixup for a specified call destination.
-
-
-
Field Detail
-
instr
protected Instruction instr
-
-
Constructor Detail
-
InstructionPcodeOverride
public InstructionPcodeOverride(Instruction instr)
-
-
Method Detail
-
getFallThroughOverride
public Address getFallThroughOverride()
Description copied from interface:PcodeOverride
Get the fall-through override address which may have been applied to the current instruction.- Specified by:
getFallThroughOverride
in interfacePcodeOverride
- Returns:
- fall-through override address or null
-
getFlowOverride
public FlowOverride getFlowOverride()
Description copied from interface:PcodeOverride
Get the flow override which may have been applied to the current instruction.- Specified by:
getFlowOverride
in interfacePcodeOverride
- Returns:
- flow override or null
-
getInstructionStart
public Address getInstructionStart()
- Specified by:
getInstructionStart
in interfacePcodeOverride
- Returns:
- current instruction address
-
getPrimaryCallReference
public Address getPrimaryCallReference()
Description copied from interface:PcodeOverride
Get the primary call reference address from the current instruction- Specified by:
getPrimaryCallReference
in interfacePcodeOverride
- Returns:
- call reference address or null
-
hasCallFixup
public boolean hasCallFixup(Address callDestAddr)
Description copied from interface:PcodeOverride
Returns the call-fixup for a specified call destination.- Specified by:
hasCallFixup
in interfacePcodeOverride
- Parameters:
callDestAddr
- call destination address. This address is used to identify a function which may have been tagged with a CallFixup.- Returns:
- true if call destination function has been tagged with a call-fixup
-
getCallFixup
public InjectPayload getCallFixup(Address callDestAddr)
Description copied from interface:PcodeOverride
Returns the call-fixup for a specified call destination. If the destination function has not be tagged or was tagged with an unknown CallFixup name this method will return null.- Specified by:
getCallFixup
in interfacePcodeOverride
- Parameters:
callDestAddr
- call destination address. This address is used to identify a function which may have been tagged with a CallFixup.- Returns:
- call fixup object or null
-
-