debugger

package
v0.0.0-...-2800048 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MemSize = vm.MemSize
)

Variables

This section is empty.

Functions

func NewInputView

func NewInputView() *tview.TextView

func NewRegistersView

func NewRegistersView() *tview.TextView

Types

type AsmView

type AsmView struct {
	*tview.Form
	// contains filtered or unexported fields
}

func (*AsmView) Close

func (av *AsmView) Close()

func (*AsmView) MouseHandler

func (av *AsmView) MouseHandler() func(action tview.MouseAction, event *tcell.EventMouse, setFocus func(p tview.Primitive)) (consumed bool, capture tview.Primitive)

type CodeView

type CodeView struct {
	*tview.TextView
	// contains filtered or unexported fields
}

func NewCodeView

func NewCodeView(ui *UI) *CodeView

func (*CodeView) Draw

func (cv *CodeView) Draw(screen tcell.Screen)

func (*CodeView) InputHandler

func (cv *CodeView) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))

func (*CodeView) MouseHandler

func (cv *CodeView) MouseHandler() func(action tview.MouseAction, event *tcell.EventMouse, setFocus func(p tview.Primitive)) (consumed bool, capture tview.Primitive)

type ErrorMessage

type ErrorMessage struct {
	*tview.TextView
	// contains filtered or unexported fields
}

func (*ErrorMessage) Close

func (em *ErrorMessage) Close()

func (*ErrorMessage) MouseHandler

func (em *ErrorMessage) MouseHandler() func(action tview.MouseAction, event *tcell.EventMouse, setFocus func(p tview.Primitive)) (consumed bool, capture tview.Primitive)

type HelpView

type HelpView struct {
	*tview.TextView
	// contains filtered or unexported fields
}

func (*HelpView) Close

func (hv *HelpView) Close()

func (*HelpView) MouseHandler

func (hv *HelpView) MouseHandler() func(action tview.MouseAction, event *tcell.EventMouse, setFocus func(p tview.Primitive)) (consumed bool, capture tview.Primitive)

type MemoryView

type MemoryView struct {
	*tview.TextView
	// contains filtered or unexported fields
}

func NewMemoryView

func NewMemoryView(ui *UI) *MemoryView

func (*MemoryView) Draw

func (mv *MemoryView) Draw(screen tcell.Screen)

func (*MemoryView) InputHandler

func (mv *MemoryView) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))

func (*MemoryView) MouseHandler

func (mv *MemoryView) MouseHandler() func(action tview.MouseAction, event *tcell.EventMouse, setFocus func(p tview.Primitive)) (consumed bool, capture tview.Primitive)

func (*MemoryView) Scroll

func (mv *MemoryView) Scroll(lines int)

type OutputView

type OutputView struct {
	*tview.TextView
	// contains filtered or unexported fields
}

func NewOutputView

func NewOutputView() *OutputView

func (*OutputView) UpdateTitle

func (ov *OutputView) UpdateTitle()

type StatusBar

type StatusBar struct {
	*tview.Box
	// contains filtered or unexported fields
}

func NewStatusBar

func NewStatusBar(ui *UI) *StatusBar

func (*StatusBar) ClearErrorText

func (sb *StatusBar) ClearErrorText()

func (*StatusBar) Draw

func (sb *StatusBar) Draw(screen tcell.Screen)

func (*StatusBar) SetErrorText

func (sb *StatusBar) SetErrorText(str string)

type UI

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

func NewUI

func NewUI(program, inputBytes []byte, cycleLimit int) (*UI, error)

func (*UI) HandleKeyboard

func (ui *UI) HandleKeyboard(event *tcell.EventKey) *tcell.EventKey

func (*UI) MainLoop

func (ui *UI) MainLoop() error

func (*UI) Refresh

func (ui *UI) Refresh()

func (*UI) RestartVM

func (ui *UI) RestartVM()

func (*UI) RunVM

func (ui *UI) RunVM()

func (*UI) ShowAsm

func (ui *UI) ShowAsm()

func (*UI) ShowError

func (ui *UI) ShowError()

func (*UI) ShowHelp

func (ui *UI) ShowHelp()

func (*UI) StepVM

func (ui *UI) StepVM()

func (*UI) ToggleASCIIMode

func (ui *UI) ToggleASCIIMode()

func (*UI) ToggleBreakpoint

func (ui *UI) ToggleBreakpoint()

func (*UI) UpdateInput

func (ui *UI) UpdateInput()

func (*UI) UpdateOutput

func (ui *UI) UpdateOutput()

func (*UI) UpdateRegisters

func (ui *UI) UpdateRegisters()

Jump to

Keyboard shortcuts

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