breakpoint

package
v0.0.0-...-2a0aeb0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2020 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Overview

*

  • A data structure for storing established breakpoints.

*

  • A queue data structure for breakpoints.

Index

Constants

View Source
const BreakpointEnabledState = "enabled"

*

  • The DBGp protocol uses "enabled" to indicate that a breakpoint is currently
  • in use.
View Source
const Code_type_breakpoint = "code"
View Source
const Line_type_breakpoint = "line"

Variables

This section is empty.

Functions

func BroadcastPending

func BroadcastPending(DBGpMessages chan message.Message)

*

  • Broadcast the list of existing and pending breakpoints. *
  • Existing breakpoints are the ones that have been set during the previous
  • debugging session. Pending breakpoints have been added through the UI, but
  • have not been sent to the debugger engine yet.

func Delete

func Delete(breakpointId int)

*

  • Delete the given breakpoint record from *our list*.

func Enqueue

func Enqueue(breakpointType, arg0, arg1 string)

*

  • Add a *pending* breakpoint record. *
  • Only deals with line breakpoints at the moment.

func ListAllBreakpoints

func ListAllBreakpoints() (breakpoints map[int]message.Breakpoint)

*

  • List both pending and established breakpoints.

func PrepareFakeMsg

func PrepareFakeMsg() (msg message.Message)

*

  • Prepare a response comprising breakpoints. *
  • This message comprises existing and pending breakpoints.

func RemovePending

func RemovePending(breakpointId string) (err error)

*

  • Remove given breakpoint even if it is pending.

func RenewList

func RenewList(breakpoints map[int]message.Breakpoint)

*

  • Renew breakpoint list. *
  • Update our list of existing breakpoints maintained by the DBGp engine.

func SendPending

func SendPending(DBGpCmds chan string)

*

  • Send breakpoint creation commands for queued breakpoints. *
  • When Footle is not connected to the DBGp engine, new breakpoints coming from
  • the UI are queued. These are sent to the DBGp engine when the next debugging
  • session starts.

Types

type FakeMessage

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

func (*FakeMessage) AddExistingBreakpoints

func (m *FakeMessage) AddExistingBreakpoints(existingList breakpointList)

*

  • Add existing breakpoints to the response message.

func (*FakeMessage) AddPendingBreakpoints

func (m *FakeMessage) AddPendingBreakpoints(pending Queue)

*

  • Add pending breakpoints to the response message.

func (*FakeMessage) GetMsg

func (m *FakeMessage) GetMsg() (msg message.Message)

*

  • Getter for the message record.

type Queue

type Queue []breakpoint

Jump to

Keyboard shortcuts

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