提交 c8035c93 编写于 作者: D Derek Parker

Prefer funcs to functions

上级 260d6d1f
......@@ -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.
......
......@@ -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))) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册