Added aliases to commands

Added:
- break: b
- continue: c
- step: si
- next: n
- print: p

Taken from the gdb command list

Also updated .gitignore to ignore built dlv file in cmd/dlv
This commit is contained in:
Jason Del Ponte
2014-11-13 21:51:32 -08:00
committed by Derek Parker
parent 29d0cd0bde
commit d54a3262d2
3 changed files with 62 additions and 34 deletions

View File

@ -9,7 +9,7 @@ import (
func TestCommandDefault(t *testing.T) {
var (
cmds = Commands{make(map[string]cmdfunc)}
cmds = Commands{}
cmd = cmds.Find("non-existant-command")
)
@ -25,7 +25,7 @@ func TestCommandDefault(t *testing.T) {
func TestCommandReplay(t *testing.T) {
cmds := DebugCommands()
cmds.Register("foo", func(p *proctl.DebuggedProcess, args ...string) error { return fmt.Errorf("registered command") })
cmds.Register("foo", func(p *proctl.DebuggedProcess, args ...string) error { return fmt.Errorf("registered command") }, "foo command")
cmd := cmds.Find("foo")
err := cmd(nil)