Package ghidra.program.model.lang
Class InstructionError
- java.lang.Object
-
- ghidra.program.model.lang.InstructionError
-
public class InstructionError extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInstructionError.InstructionErrorType
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voiddumpInstructionDifference(Instruction newInst, Instruction existingInstr)AddressgetConflictAddress()java.lang.StringgetConflictMessage()AddressgetFlowFromAddress()AddressgetInstructionAddress()InstructionBlockgetInstructionBlock()InstructionError.InstructionErrorTypegetInstructionErrorType()RegisterValuegetParseContextValue()booleanisInstructionConflict()booleanisOffcutError()
-
-
-
Method Detail
-
getInstructionBlock
public InstructionBlock getInstructionBlock()
- Returns:
- instruction block which corresponds to this error
-
getInstructionErrorType
public InstructionError.InstructionErrorType getInstructionErrorType()
- Returns:
- type of instruction error
-
isInstructionConflict
public boolean isInstructionConflict()
-
isOffcutError
public boolean isOffcutError()
-
getInstructionAddress
public Address getInstructionAddress()
- Returns:
- address of new intended instruction which failed to be created (never null)
-
getConflictAddress
public Address getConflictAddress()
- Returns:
- address of another code unit which conflicts with intended instruction (required for CODE_UNIT and DUPLCIATE errors, null for others)
-
getParseContextValue
public RegisterValue getParseContextValue()
- Returns:
- disassembler context at intended instruction address (required for PARSE error, null for others)
-
getFlowFromAddress
public Address getFlowFromAddress()
- Returns:
- flow-from address if know else null
-
getConflictMessage
public java.lang.String getConflictMessage()
- Returns:
- instruction error message
-
dumpInstructionDifference
public static void dumpInstructionDifference(Instruction newInst, Instruction existingInstr)
-
-