Documentation ¶
Overview ¶
*
- A data structure for storing established breakpoints.
*
- A queue data structure for breakpoints.
Index ¶
- Constants
- func BroadcastPending(DBGpMessages chan message.Message)
- func Delete(breakpointId int)
- func Enqueue(breakpointType, arg0, arg1 string)
- func ListAllBreakpoints() (breakpoints map[int]message.Breakpoint)
- func PrepareFakeMsg() (msg message.Message)
- func RemovePending(breakpointId string) (err error)
- func RenewList(breakpoints map[int]message.Breakpoint)
- func SendPending(DBGpCmds chan string)
- type FakeMessage
- type Queue
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 ¶
*
- 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 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 ¶
*
- Prepare a response comprising breakpoints. *
- This message comprises existing and pending breakpoints.
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.
Click to show internal directories.
Click to hide internal directories.