Documentation
¶
Index ¶
- func Decode(startPC uint64, endPC uint64) ([]proc.AsmInstruction, error)
- func GetDestPC(inst proc.AsmInstruction) (uintptr, error)
- func GetEpilogue(instructions []proc.AsmInstruction) []proc.AsmInstruction
- func GetFirstInstructionWithCond(instructions []proc.AsmInstruction, filter func(inst *x86Inst) bool) (proc.AsmInstruction, int, bool)
- func GetFunctionPage(entry, end uint64) []byte
- func GetMutableInterval(fInsts []proc.AsmInstruction) (mutStart, mutEnd uint64, err error)
- func GetOriginalRegBackup(epiInsts []proc.AsmInstruction) (regBackup []byte, regRestore []byte)
- func IsDirectCall(i *x86Inst) bool
- func IsDirectJump(inst *x86Inst) bool
- func MakeSliceFromPointer(p uint64, length int) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEpilogue ¶
func GetEpilogue(instructions []proc.AsmInstruction) []proc.AsmInstruction
func GetFirstInstructionWithCond ¶
func GetFirstInstructionWithCond(instructions []proc.AsmInstruction, filter func(inst *x86Inst) bool) (proc.AsmInstruction, int, bool)
func GetMutableInterval ¶
func GetMutableInterval(fInsts []proc.AsmInstruction) (mutStart, mutEnd uint64, err error)
GetMutableInterval will return a interval [mutStart, mutEnd), where all instruction in this interval is mutable NOTE: mutStart is inclusive, mutEnd is exclusive, namely [mutStart, mutEnd)
func GetOriginalRegBackup ¶
func GetOriginalRegBackup(epiInsts []proc.AsmInstruction) (regBackup []byte, regRestore []byte)
read from internal mem
func IsDirectCall ¶
func IsDirectCall(i *x86Inst) bool
func IsDirectJump ¶
func IsDirectJump(inst *x86Inst) bool
func MakeSliceFromPointer ¶
use by instruction level
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.