diff --git a/README.md b/README.md index 0bf30f65..4a68451c 100644 --- a/README.md +++ b/README.md @@ -66,9 +66,9 @@ Once inside a debugging session, the following commands may be used: * `print $var` - Evaluate a variable. -* `info $type [regex]` - Outputs information about the symbol table. An optional regex filters the list. Example `info functions unicode`. Valid types are: +* `info $type [regex]` - Outputs information about the symbol table. An optional regex filters the list. Example `info funcs unicode`. Valid types are: * `sources` - Prings the path of all source files - * `functions` - Prings the name of all defined functions + * `funcs` - Prings the name of all defined functions * `exit` - Exit the debugger. diff --git a/command/command.go b/command/command.go index 62d184c7..4c69c53d 100644 --- a/command/command.go +++ b/command/command.go @@ -286,7 +286,7 @@ func info(p *proctl.DebuggedProcess, args ...string) error { } } - case "functions": + case "funcs": data = make([]string, 0, len(p.GoSymTable.Funcs)) for _, f := range p.GoSymTable.Funcs { if f.Sym != nil && (filter == nil || filter.Match([]byte(f.Name))) {