mirror of
https://github.com/go-delve/delve.git
synced 2025-11-01 20:20:40 +08:00
Prefer funcs to functions
This commit is contained in:
@ -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))) {
|
||||
|
||||
Reference in New Issue
Block a user