breakpoints

package
v0.30.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package breakpoints records the breakpoints assigned to memory addresses. Also provides functions to control breakpoints on lines of source code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Breakpoints

type Breakpoints struct {
	// contains filtered or unexported fields
}

func NewBreakpoints

func NewBreakpoints() Breakpoints

NewBreakpoints is the preferred method of initialiasation for the Breakpoints type

func (*Breakpoints) CanBreakpoint

func (bp *Breakpoints) CanBreakpoint(ln *dwarf.SourceLine) bool

CanBreakpoint returns true if the specified line can have a breakpoint applied to it

func (*Breakpoints) Check

func (bp *Breakpoints) Check(addr uint32) bool

HasBreakpoint returns true if there is a breakpoint on the specified line

func (*Breakpoints) HasBreakpoint

func (bp *Breakpoints) HasBreakpoint(ln *dwarf.SourceLine) bool

HasBreakpoint returns true if there is a breakpoint on the specified line

func (*Breakpoints) ToggleBreakpoint

func (bp *Breakpoints) ToggleBreakpoint(ln *dwarf.SourceLine)

ToggleBreakpoint adds or removes a breakpoint depending on whether the breakpoint already exists

func (*Breakpoints) Write

func (bp *Breakpoints) Write(w io.Writer)

Write writes out the current callstack

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL