From c8035c93385214b70cda494c51e2dfa4957db751 Mon Sep 17 00:00:00 2001 From: Derek Parker Date: Sun, 28 Dec 2014 23:06:04 -0600 Subject: [PATCH] Prefer funcs to functions --- README.md | 4 ++-- command/command.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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))) {