Prefer funcs to functions

This commit is contained in:
Derek Parker
2014-12-28 23:06:04 -06:00
parent 260d6d1fe1
commit c8035c9338
2 changed files with 3 additions and 3 deletions

View File

@ -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.

View File

@ -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))) {