Documentation ¶
Overview ¶
Distributed under the MIT license. See the LICENSE file. * Copyright (c) 2014--2016 Thomas Fogal
Distributed under the MIT license. See the LICENSE file. * Copyright (c) 2014--2016 Thomas Fogal
Distributed under the MIT license. See the LICENSE file. * Copyright (c) 2014--2016 Thomas Fogal
Distributed under the MIT license. See the LICENSE file. * Copyright (c) 2014--2016 Thomas Fogal
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrSegFault = errors.New("SIGSEGV") ErrAlreadyBroken = errors.New("Breakpoint is already there") )
Functions ¶
func Stepback ¶
Move the instruction pointer back one. Needed after we hit a breakpoint, otherwise we'd essentially be jumping into the middle of an instruction!
Types ¶
type Breakpoint ¶
type Breakpoint struct { Address uintptr // where it was inserted // contains filtered or unexported fields }
func Break ¶
func Break(inferior *ptrace.Tracee, address uintptr) (Breakpoint, error)
Inserts a breakpoint at the given address. You'll need the return value to remove the breakpoint.
func (Breakpoint) String ¶
func (b Breakpoint) String() string
Click to show internal directories.
Click to hide internal directories.