dwarflang.enums module

class dwarflang.enums.DW_OP(value)

Bases: enum.Enum

An enumeration.

ABS = 'DW_OP_abs'
ADDR = 'DW_OP_addr'
ADDRX = 'DW_OP_addrx'
AND = 'DW_OP_and'
AND_ = 'DW_OP_and'
BIT_PIECE = 'DW_OP_bit_piece'
BRA = 'DW_OP_bra'
BREG0 = 'DW_OP_breg0'
BREG1 = 'DW_OP_breg1'
BREG10 = 'DW_OP_breg10'
BREG11 = 'DW_OP_breg11'
BREG12 = 'DW_OP_breg12'
BREG13 = 'DW_OP_breg13'
BREG14 = 'DW_OP_breg14'
BREG15 = 'DW_OP_breg15'
BREG16 = 'DW_OP_breg16'
BREG17 = 'DW_OP_breg17'
BREG18 = 'DW_OP_breg18'
BREG19 = 'DW_OP_breg19'
BREG2 = 'DW_OP_breg2'
BREG20 = 'DW_OP_breg20'
BREG21 = 'DW_OP_breg21'
BREG22 = 'DW_OP_breg22'
BREG23 = 'DW_OP_breg23'
BREG24 = 'DW_OP_breg24'
BREG25 = 'DW_OP_breg25'
BREG26 = 'DW_OP_breg26'
BREG27 = 'DW_OP_breg27'
BREG28 = 'DW_OP_breg28'
BREG29 = 'DW_OP_breg29'
BREG3 = 'DW_OP_breg3'
BREG30 = 'DW_OP_breg30'
BREG31 = 'DW_OP_breg31'
BREG4 = 'DW_OP_breg4'
BREG5 = 'DW_OP_breg5'
BREG6 = 'DW_OP_breg6'
BREG7 = 'DW_OP_breg7'
BREG8 = 'DW_OP_breg8'
BREG9 = 'DW_OP_breg9'
BREGX = 'DW_OP_bregx'
CALL2 = 'DW_OP_call2'
CALL4 = 'DW_OP_call4'
CALL_FRAME_CFA = 'DW_OP_call_frame_cfa'
CALL_REF = 'DW_OP_call_ref'
CONST1S = 'DW_OP_const1s'
CONST1U = 'DW_OP_const1u'
CONST2S = 'DW_OP_const2s'
CONST2U = 'DW_OP_const2u'
CONST4S = 'DW_OP_const4s'
CONST4U = 'DW_OP_const4u'
CONST8S = 'DW_OP_const8s'
CONST8U = 'DW_OP_const8u'
CONSTS = 'DW_OP_consts'
CONSTU = 'DW_OP_constu'
CONSTX = 'DW_OP_constx'
CONST_TYPE = 'DW_OP_const_type'
CONVERT = 'DW_OP_convert'
DEREF = 'DW_OP_deref'
DEREF_SIZE = 'DW_OP_deref_size'
DEREF_TYPE = 'DW_OP_deref_type'
DIV = 'DW_OP_div'
DROP = 'DW_OP_drop'
DUP = 'DW_OP_dup'
ENTRY_VALUE = 'DW_OP_entry_value'
EQ = 'DW_OP_eq'
FBREG = 'DW_OP_fbreg'
FORM_TLS_ADDRESS = 'DW_OP_form_tls_address'
GE = 'DW_OP_ge'
GNU_CONST_TYPE = 'DW_OP_GNU_const_type'
GNU_CONVERT = 'DW_OP_GNU_convert'
GNU_DEREF_TYPE = 'DW_OP_GNU_deref_type'
GNU_ENTRY_VALUE = 'DW_OP_GNU_entry_value'
GNU_IMPLICIT_POINTER = 'DW_OP_GNU_implicit_pointer'
GNU_PARAMETER_REF = 'DW_OP_GNU_parameter_ref'
GNU_PUSH_TLS_ADDRESS = 'DW_OP_GNU_push_tls_address'
GNU_REGVAL_TYPE = 'DW_OP_GNU_regval_type'
GT = 'DW_OP_gt'
HI_USER = 'DW_OP_hi_user'
IMPLICIT_POINTER = 'DW_OP_implicit_pointer'
IMPLICIT_VALUE = 'DW_OP_implicit_value'
LE = 'DW_OP_le'
LIT0 = 'DW_OP_lit0'
LIT1 = 'DW_OP_lit1'
LIT10 = 'DW_OP_lit10'
LIT11 = 'DW_OP_lit11'
LIT12 = 'DW_OP_lit12'
LIT13 = 'DW_OP_lit13'
LIT14 = 'DW_OP_lit14'
LIT15 = 'DW_OP_lit15'
LIT16 = 'DW_OP_lit16'
LIT17 = 'DW_OP_lit17'
LIT18 = 'DW_OP_lit18'
LIT19 = 'DW_OP_lit19'
LIT2 = 'DW_OP_lit2'
LIT20 = 'DW_OP_lit20'
LIT21 = 'DW_OP_lit21'
LIT22 = 'DW_OP_lit22'
LIT23 = 'DW_OP_lit23'
LIT24 = 'DW_OP_lit24'
LIT25 = 'DW_OP_lit25'
LIT26 = 'DW_OP_lit26'
LIT27 = 'DW_OP_lit27'
LIT28 = 'DW_OP_lit28'
LIT29 = 'DW_OP_lit29'
LIT3 = 'DW_OP_lit3'
LIT30 = 'DW_OP_lit30'
LIT31 = 'DW_OP_lit31'
LIT4 = 'DW_OP_lit4'
LIT5 = 'DW_OP_lit5'
LIT6 = 'DW_OP_lit6'
LIT7 = 'DW_OP_lit7'
LIT8 = 'DW_OP_lit8'
LIT9 = 'DW_OP_lit9'
LO_USER = 'DW_OP_lo_user'
LT = 'DW_OP_lt'
MINUS = 'DW_OP_minus'
MOD = 'DW_OP_mod'
MUL = 'DW_OP_mul'
NE = 'DW_OP_ne'
NEG = 'DW_OP_neg'
NOP = 'DW_OP_nop'
NOT = 'DW_OP_not'
NOT_ = 'DW_OP_not'
OR = 'DW_OP_or'
OR_ = 'DW_OP_or'
OVER = 'DW_OP_over'
PICK = 'DW_OP_pick'
PIECE = 'DW_OP_piece'
PLUS = 'DW_OP_plus'
PLUS_UCONST = 'DW_OP_plus_uconst'
PUSH_OBJECT_ADDRESS = 'DW_OP_push_object_address'
REG0 = 'DW_OP_reg0'
REG1 = 'DW_OP_reg1'
REG10 = 'DW_OP_reg10'
REG11 = 'DW_OP_reg11'
REG12 = 'DW_OP_reg12'
REG13 = 'DW_OP_reg13'
REG14 = 'DW_OP_reg14'
REG15 = 'DW_OP_reg15'
REG16 = 'DW_OP_reg16'
REG17 = 'DW_OP_reg17'
REG18 = 'DW_OP_reg18'
REG19 = 'DW_OP_reg19'
REG2 = 'DW_OP_reg2'
REG20 = 'DW_OP_reg20'
REG21 = 'DW_OP_reg21'
REG22 = 'DW_OP_reg22'
REG23 = 'DW_OP_reg23'
REG24 = 'DW_OP_reg24'
REG25 = 'DW_OP_reg25'
REG26 = 'DW_OP_reg26'
REG27 = 'DW_OP_reg27'
REG28 = 'DW_OP_reg28'
REG29 = 'DW_OP_reg29'
REG3 = 'DW_OP_reg3'
REG30 = 'DW_OP_reg30'
REG31 = 'DW_OP_reg31'
REG4 = 'DW_OP_reg4'
REG5 = 'DW_OP_reg5'
REG6 = 'DW_OP_reg6'
REG7 = 'DW_OP_reg7'
REG8 = 'DW_OP_reg8'
REG9 = 'DW_OP_reg9'
REGVAL_TYPE = 'DW_OP_regval_type'
REGX = 'DW_OP_regx'
REINTERPRET = 'DW_OP_reinterpret'
ROT = 'DW_OP_rot'
SHL = 'DW_OP_shl'
SHR = 'DW_OP_shr'
SHRA = 'DW_OP_shra'
SKIP = 'DW_OP_skip'
STACK_VALUE = 'DW_OP_stack_value'
SWAP = 'DW_OP_swap'
XDEREF = 'DW_OP_xderef'
XDEREF_SIZE = 'DW_OP_xderef_size'
XDEREF_TYPE = 'DW_OP_xderef_type'
XOR = 'DW_OP_xor'
class dwarflang.enums.DwarfRegister(value)

Bases: enum.Enum

The variety of DWARF registers.

DW_OP_BREG = 'DW_OP_breg'
DW_OP_BREGX = 'DW_OP_bregx'
DW_OP_FBREG = 'DW_OP_fbreg'
DW_OP_REG = 'DW_OP_reg'
DW_OP_REGX = 'DW_OP_regx'
dwarflang.enums.breg(n: int) Optional[dwarflang.enums.DW_OP]
Parameters

n (int) –

Return type

Optional[dwarflang.enums.DW_OP]

dwarflang.enums.breg_num(op: dwarflang.enums.DW_OP) Optional[int]
Parameters

op (dwarflang.enums.DW_OP) –

Return type

Optional[int]

dwarflang.enums.breg_to_reg(op: dwarflang.enums.DW_OP) Optional[dwarflang.enums.DW_OP]
Parameters

op (dwarflang.enums.DW_OP) –

Return type

Optional[dwarflang.enums.DW_OP]

dwarflang.enums.lit(n: int) Optional[dwarflang.enums.DW_OP]
Parameters

n (int) –

Return type

Optional[dwarflang.enums.DW_OP]

dwarflang.enums.lit_num(op: dwarflang.enums.DW_OP) Optional[int]
Parameters

op (dwarflang.enums.DW_OP) –

Return type

Optional[int]

dwarflang.enums.lookup_DW_OP(name: str) Optional[dwarflang.enums.DW_OP]
Parameters

name (str) –

Return type

Optional[dwarflang.enums.DW_OP]

dwarflang.enums.reg(n: int) Optional[dwarflang.enums.DW_OP]
Parameters

n (int) –

Return type

Optional[dwarflang.enums.DW_OP]

dwarflang.enums.reg_num(op: dwarflang.enums.DW_OP) Optional[int]
Parameters

op (dwarflang.enums.DW_OP) –

Return type

Optional[int]

dwarflang.enums.reg_to_breg(op: dwarflang.enums.DW_OP) Optional[dwarflang.enums.DW_OP]
Parameters

op (dwarflang.enums.DW_OP) –

Return type

Optional[dwarflang.enums.DW_OP]

dwarflang.enums.remove_prefix(text: str, prefix: str) str
Parameters
  • text (str) –

  • prefix (str) –

Return type

str