Documentation ¶
Overview ¶
Package asm abstracts disassembling machine code from various architectures.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Control ¶
type Control struct { Type ControlType Conditional bool TargetPC uint64 // ^0 if unknown Target Arg }
Control captures control-flow effects of an instruction.
type ControlType ¶
type ControlType uint8
const ( ControlNone ControlType = iota ControlJump ControlCall ControlRet // ControlJumpUnknown is a jump with an unknown target. This // means the control analysis could be incomplete, since this // could jump to an instruction in the analyzed function. ControlJumpUnknown // ControlExit is like a call that never returns. ControlExit )
func (ControlType) String ¶
func (i ControlType) String() string
type Inst ¶
type Inst interface { // GoSyntax returns the Go assembler syntax representation of // this instruction. symname, if non-nil, must return the name // and base of the symbol containing address addr, or "" if // symbol lookup fails. GoSyntax(symName func(addr uint64) (string, uint64)) string // PC returns the address of this instruction. PC() uint64 // Len returns the length of this instruction in bytes. Len() int // Control returns the control-flow effects of this // instruction. Control() Control }
Inst is a single machine instruction.
Click to show internal directories.
Click to hide internal directories.