Versions in this module Expand all Collapse all v1 v1.1.0 Aug 16, 2018 Changes in this version + func PrettyPrint(out io.Writer, instructions []byte) + type DwarfRegister struct + Bytes []byte + Uint64Val uint64 + func DwarfRegisterFromBytes(bytes []byte) *DwarfRegister + func DwarfRegisterFromUint64(v uint64) *DwarfRegister + type DwarfRegisters struct + BPRegNum uint64 + ByteOrder binary.ByteOrder + CFA int64 + FrameBase int64 + ObjBase int64 + PCRegNum uint64 + Regs []*DwarfRegister + SPRegNum uint64 + func (regs *DwarfRegisters) AddReg(idx uint64, reg *DwarfRegister) + func (regs *DwarfRegisters) BP() uint64 + func (regs *DwarfRegisters) Bytes(idx uint64) []byte + func (regs *DwarfRegisters) PC() uint64 + func (regs *DwarfRegisters) Reg(idx uint64) *DwarfRegister + func (regs *DwarfRegisters) SP() uint64 + func (regs *DwarfRegisters) Uint64Val(idx uint64) uint64 + type Opcode byte + const DW_OP_abs + const DW_OP_addr + const DW_OP_and + const DW_OP_bit_piece + const DW_OP_bra + const DW_OP_breg0 + const DW_OP_breg1 + const DW_OP_breg10 + const DW_OP_breg11 + const DW_OP_breg12 + const DW_OP_breg13 + const DW_OP_breg14 + const DW_OP_breg15 + const DW_OP_breg16 + const DW_OP_breg17 + const DW_OP_breg18 + const DW_OP_breg19 + const DW_OP_breg2 + const DW_OP_breg20 + const DW_OP_breg21 + const DW_OP_breg22 + const DW_OP_breg23 + const DW_OP_breg24 + const DW_OP_breg25 + const DW_OP_breg26 + const DW_OP_breg27 + const DW_OP_breg28 + const DW_OP_breg29 + const DW_OP_breg3 + const DW_OP_breg30 + const DW_OP_breg31 + const DW_OP_breg4 + const DW_OP_breg5 + const DW_OP_breg6 + const DW_OP_breg7 + const DW_OP_breg8 + const DW_OP_breg9 + const DW_OP_bregx + const DW_OP_call2 + const DW_OP_call4 + const DW_OP_call_frame_cfa + const DW_OP_call_ref + const DW_OP_const1s + const DW_OP_const1u + const DW_OP_const2s + const DW_OP_const2u + const DW_OP_const4s + const DW_OP_const4u + const DW_OP_const8s + const DW_OP_const8u + const DW_OP_consts + const DW_OP_constu + const DW_OP_deref + const DW_OP_deref_size + const DW_OP_div + const DW_OP_drop + const DW_OP_dup + const DW_OP_eq + const DW_OP_fbreg + const DW_OP_form_tls_address + const DW_OP_ge + const DW_OP_gt + const DW_OP_implicit_value + const DW_OP_le + const DW_OP_lit0 + const DW_OP_lit1 + const DW_OP_lit10 + const DW_OP_lit11 + const DW_OP_lit12 + const DW_OP_lit13 + const DW_OP_lit14 + const DW_OP_lit15 + const DW_OP_lit16 + const DW_OP_lit17 + const DW_OP_lit18 + const DW_OP_lit19 + const DW_OP_lit2 + const DW_OP_lit20 + const DW_OP_lit21 + const DW_OP_lit22 + const DW_OP_lit23 + const DW_OP_lit24 + const DW_OP_lit25 + const DW_OP_lit26 + const DW_OP_lit27 + const DW_OP_lit28 + const DW_OP_lit29 + const DW_OP_lit3 + const DW_OP_lit30 + const DW_OP_lit31 + const DW_OP_lit4 + const DW_OP_lit5 + const DW_OP_lit6 + const DW_OP_lit7 + const DW_OP_lit8 + const DW_OP_lit9 + const DW_OP_lt + const DW_OP_minus + const DW_OP_mod + const DW_OP_mul + const DW_OP_ne + const DW_OP_neg + const DW_OP_nop + const DW_OP_not + const DW_OP_or + const DW_OP_over + const DW_OP_pick + const DW_OP_piece + const DW_OP_plus + const DW_OP_plus_uconst + const DW_OP_push_object_address + const DW_OP_reg0 + const DW_OP_reg1 + const DW_OP_reg10 + const DW_OP_reg11 + const DW_OP_reg12 + const DW_OP_reg13 + const DW_OP_reg14 + const DW_OP_reg15 + const DW_OP_reg16 + const DW_OP_reg17 + const DW_OP_reg18 + const DW_OP_reg19 + const DW_OP_reg2 + const DW_OP_reg20 + const DW_OP_reg21 + const DW_OP_reg22 + const DW_OP_reg23 + const DW_OP_reg24 + const DW_OP_reg25 + const DW_OP_reg26 + const DW_OP_reg27 + const DW_OP_reg28 + const DW_OP_reg29 + const DW_OP_reg3 + const DW_OP_reg30 + const DW_OP_reg31 + const DW_OP_reg4 + const DW_OP_reg5 + const DW_OP_reg6 + const DW_OP_reg7 + const DW_OP_reg8 + const DW_OP_reg9 + const DW_OP_regx + const DW_OP_rot + const DW_OP_shl + const DW_OP_shr + const DW_OP_shra + const DW_OP_skip + const DW_OP_stack_value + const DW_OP_swap + const DW_OP_xderef + const DW_OP_xderef_size + const DW_OP_xor + type Piece struct + Addr int64 + IsRegister bool + RegNum uint64 + Size int + func ExecuteStackProgram(regs DwarfRegisters, instructions []byte) (int64, []Piece, error)