Enum Class DWARFExpressionOpCode
java.lang.Object
java.lang.Enum<DWARFExpressionOpCode>
ghidra.app.util.bin.format.dwarf.expression.DWARFExpressionOpCode
- All Implemented Interfaces:
Serializable,Comparable<DWARFExpressionOpCode>,Constable
DWARF expression opcodes, and their expected operands.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionbyteReturns this opcode's raw numeric value.Returns the expected operand types that an instruction would have for this opcode.intCalculates the relative opcode number of this opcode, as compared to a base opcode.static booleanReturns true if the specified opcode is in the range (inclusive) of the lo..hi opcodes.static DWARFExpressionOpCodeparse(int opcode) Returns the matchingDWARFExpressionOpCodeenum member, or null if unknown opcode.toString(DWARFRegisterMappings regMapping) static DWARFExpressionOpCodeReturns the enum constant of this class with the specified name.static DWARFExpressionOpCode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DW_OP_unknown_opcode
-
DW_OP_addr
-
DW_OP_deref
-
DW_OP_const1u
-
DW_OP_const1s
-
DW_OP_const2u
-
DW_OP_const2s
-
DW_OP_const4u
-
DW_OP_const4s
-
DW_OP_const8u
-
DW_OP_const8s
-
DW_OP_constu
-
DW_OP_consts
-
DW_OP_dup
-
DW_OP_drop
-
DW_OP_over
-
DW_OP_pick
-
DW_OP_swap
-
DW_OP_rot
-
DW_OP_xderef
-
DW_OP_abs
-
DW_OP_and
-
DW_OP_div
-
DW_OP_minus
-
DW_OP_mod
-
DW_OP_mul
-
DW_OP_neg
-
DW_OP_not
-
DW_OP_or
-
DW_OP_plus
-
DW_OP_plus_uconst
-
DW_OP_shl
-
DW_OP_shr
-
DW_OP_shra
-
DW_OP_xor
-
DW_OP_bra
-
DW_OP_eq
-
DW_OP_ge
-
DW_OP_gt
-
DW_OP_le
-
DW_OP_lt
-
DW_OP_ne
-
DW_OP_skip
-
DW_OP_lit0
-
DW_OP_lit1
-
DW_OP_lit2
-
DW_OP_lit3
-
DW_OP_lit4
-
DW_OP_lit5
-
DW_OP_lit6
-
DW_OP_lit7
-
DW_OP_lit8
-
DW_OP_lit9
-
DW_OP_lit10
-
DW_OP_lit11
-
DW_OP_lit12
-
DW_OP_lit13
-
DW_OP_lit14
-
DW_OP_lit15
-
DW_OP_lit16
-
DW_OP_lit17
-
DW_OP_lit18
-
DW_OP_lit19
-
DW_OP_lit20
-
DW_OP_lit21
-
DW_OP_lit22
-
DW_OP_lit23
-
DW_OP_lit24
-
DW_OP_lit25
-
DW_OP_lit26
-
DW_OP_lit27
-
DW_OP_lit28
-
DW_OP_lit29
-
DW_OP_lit30
-
DW_OP_lit31
-
DW_OP_reg0
-
DW_OP_reg1
-
DW_OP_reg2
-
DW_OP_reg3
-
DW_OP_reg4
-
DW_OP_reg5
-
DW_OP_reg6
-
DW_OP_reg7
-
DW_OP_reg8
-
DW_OP_reg9
-
DW_OP_reg10
-
DW_OP_reg11
-
DW_OP_reg12
-
DW_OP_reg13
-
DW_OP_reg14
-
DW_OP_reg15
-
DW_OP_reg16
-
DW_OP_reg17
-
DW_OP_reg18
-
DW_OP_reg19
-
DW_OP_reg20
-
DW_OP_reg21
-
DW_OP_reg22
-
DW_OP_reg23
-
DW_OP_reg24
-
DW_OP_reg25
-
DW_OP_reg26
-
DW_OP_reg27
-
DW_OP_reg28
-
DW_OP_reg29
-
DW_OP_reg30
-
DW_OP_reg31
-
DW_OP_breg0
-
DW_OP_breg1
-
DW_OP_breg2
-
DW_OP_breg3
-
DW_OP_breg4
-
DW_OP_breg5
-
DW_OP_breg6
-
DW_OP_breg7
-
DW_OP_breg8
-
DW_OP_breg9
-
DW_OP_breg10
-
DW_OP_breg11
-
DW_OP_breg12
-
DW_OP_breg13
-
DW_OP_breg14
-
DW_OP_breg15
-
DW_OP_breg16
-
DW_OP_breg17
-
DW_OP_breg18
-
DW_OP_breg19
-
DW_OP_breg20
-
DW_OP_breg21
-
DW_OP_breg22
-
DW_OP_breg23
-
DW_OP_breg24
-
DW_OP_breg25
-
DW_OP_breg26
-
DW_OP_breg27
-
DW_OP_breg28
-
DW_OP_breg29
-
DW_OP_breg30
-
DW_OP_breg31
-
DW_OP_regx
-
DW_OP_fbreg
-
DW_OP_bregx
-
DW_OP_piece
-
DW_OP_deref_size
-
DW_OP_xderef_size
-
DW_OP_nop
-
DW_OP_push_object_address
-
DW_OP_call2
-
DW_OP_call4
-
DW_OP_call_ref
-
DW_OP_form_tls_address
-
DW_OP_call_frame_cfa
-
DW_OP_bit_piece
-
DW_OP_implicit_value
-
DW_OP_stack_value
-
DW_OP_implicit_pointer
-
DW_OP_addrx
-
DW_OP_constx
-
DW_OP_entry_value
-
DW_OP_const_type
-
DW_OP_regval_type
-
DW_OP_deref_type
-
DW_OP_xderef_type
-
DW_OP_convert
-
DW_OP_reinterpret
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getOpCodeValue
public byte getOpCodeValue()Returns this opcode's raw numeric value.- Returns:
- this opcode's raw numeric value
-
getOperandTypes
Returns the expected operand types that an instruction would have for this opcode.- Returns:
- the expected operand types that an instruction would have for this opcode
-
isInRange
public static boolean isInRange(DWARFExpressionOpCode op, DWARFExpressionOpCode lo, DWARFExpressionOpCode hi) Returns true if the specified opcode is in the range (inclusive) of the lo..hi opcodes.- Parameters:
op- opcode to testlo- lowest opcodehi- highest opcode- Returns:
- true if the specified opcode is in the range (inclusive) of the lo..hi opcodes
-
getRelativeOpCodeOffset
Calculates the relative opcode number of this opcode, as compared to a base opcode.Example: if this opcode was DW_OP_reg12 (0x5c), and the base op code was DW_OP_reg0 (0x50), the result value would be 12.
- Parameters:
baseOp- base opcode that this opcode is being compared to- Returns:
- numeric difference between this opcode and the base opcode
-
toString
-
parse
Returns the matchingDWARFExpressionOpCodeenum member, or null if unknown opcode.- Parameters:
opcode- numeric value of opcode (currently defined by DWARF as uint8)- Returns:
- the matching
DWARFExpressionOpCodeenum member, or null if unknown opcode
-