Exemplo n.º 1
0
func init() {
	parent := "info"
	gub.AddSubCommand(parent, &gub.SubcmdInfo{
		Fn: InfoBlockSubcmd,
		Help: `info block
Prints basic block number`,
		Min_args:   0,
		Max_args:   0,
		Short_help: "Basic block number",
		Name:       "block",
	})
}
Exemplo n.º 2
0
func init() {
	parent := "info"
	gub.AddSubCommand(parent, &gub.SubcmdInfo{
		Fn: InfoArgsSubcmd,
		Help: `info args [arg-name]
Show argument variables of the current stack frame"`,
		Min_args:   0,
		Max_args:   1,
		Short_help: "Show argument variables of the current stack frame",
		Name:       "args",
	})
}
Exemplo n.º 3
0
func init() {
	parent := "set"
	gub.AddSubCommand(parent, &gub.SubcmdInfo{
		Fn: SetHighlightSubcmd,
		Help: `set highlight [on|off]

Sets whether terminal highlighting is to be used`,
		Min_args:   0,
		Max_args:   1,
		Short_help: "use terminal highlight",
		Name:       "highlight",
	})
}
Exemplo n.º 4
0
func init() {
	parent := "show"
	gub.AddSubCommand(parent, &gub.SubcmdInfo{
		Fn: ShowHighlightSubcmd,
		Help: `show highlight

Show whether terminal highlighting is used`,
		Min_args:   0,
		Max_args:   0,
		Short_help: "show terminal highlight",
		Name:       "highlight",
	})
}
Exemplo n.º 5
0
func init() {
	parent := "show"
	gub.AddSubCommand(parent, &gub.SubcmdInfo{
		Fn: ShowTraceSubcmd,
		Help: `show trace

Show interpreter instruction tracing status`,
		Min_args:   0,
		Max_args:   0,
		Short_help: "show interpreter instruction tracing",
		Name:       "trace",
	})
}
Exemplo n.º 6
0
func init() {
	parent := "set"
	gub.AddSubCommand(parent, &gub.SubcmdInfo{
		Fn: SetTraceSubcmd,
		Help: `set trace [on|off]

set instruction tracing
`,
		Min_args:   0,
		Max_args:   1,
		Short_help: "Set instruction tracing on or off",
		Name:       "trace",
	})
}
Exemplo n.º 7
0
func init() {
	parent := "info"
	gub.AddSubCommand(parent, &gub.SubcmdInfo{
		Fn: InfoPackageSubcmd,
		Help: `info program

Prints package name and path information about :
`,
		Min_args:   0,
		Max_args:   -1, // Max_args < 0 means an arbitrary number
		Short_help: "Information about packages",
		Name:       "package",
	})
}
Exemplo n.º 8
0
func init() {
	parent := "info"
	gub.AddSubCommand(parent, &gub.SubcmdInfo{
		Fn: InfoStackSubcmd,
		Help: `info stack

Same thing as "backtrace"
`,
		Min_args:   0,
		Max_args:   0,
		Short_help: "Same thing as \"backtrace\"",
		Name:       "stack",
	})
}
Exemplo n.º 9
0
func init() {
	parent := "show"
	gub.AddSubCommand(parent, &gub.SubcmdInfo{
		Fn: ShowArgsSubcmd,
		Help: `show args

Show argument list to give program being debugged when it is started.
`,
		Min_args:   0,
		Max_args:   0,
		Short_help: "Show argument list to give program being debugged when it is started",
		Name:       "args",
	})
}
Exemplo n.º 10
0
func init() {
	parent := "info"
	gub.AddSubCommand(parent, &gub.SubcmdInfo{
		Fn: InfoScopeSubcmd,
		Help: `info scope [level]

Prints information about the scope for the current stack frame.
If a level is given, we go up that many levels.
`,
		Min_args:   0,
		Max_args:   1,
		Short_help: "Scope information",
		Name:       "scope",
	})
}
Exemplo n.º 11
0
func init() {
	parent := "set"
	gub.AddSubCommand(parent, &gub.SubcmdInfo{
		Fn: SetHighlightSubcmd,
		Help: `Modifies parts of the debugger environment.

You can give unique prefix of the name of a subcommand to get
information about just that subcommand.

Type "set" for a list of "set" subcommands and what they do.
Type "help set *" for just the list of "set" subcommands.`,
		Min_args: 0,
		Max_args: 3,
	})
}
Exemplo n.º 12
0
func init() {
	parent := "info"
	gub.AddSubCommand(parent, &gub.SubcmdInfo{
		Fn: InfoNodeSubcmd,
		Help: `info node

Prints information about the node of the current scope.
Warning: this can be volumnous.
`,
		Min_args:   0,
		Max_args:   0,
		Short_help: "AST Node information",
		Name:       "node",
	})
}
Exemplo n.º 13
0
func init() {
	parent := "info"
	gub.AddSubCommand(parent, &gub.SubcmdInfo{
		Fn: InfoPCSubcmd,
		Help: `info pc

Prints information about the current PC, an instruction counter
and block number. If we are at a call, before the first instruction,
-1 is printed. If we are at a return, after the last instruction,
-2 is printed.
`,
		Min_args:   0,
		Max_args:   0,
		Short_help: "program counter",
		Name:       "pc",
	})
}
Exemplo n.º 14
0
func init() {
	parent := "info"
	gub.AddSubCommand(parent, &gub.SubcmdInfo{
		Fn: InfoProgramSubcmd,
		Help: `info frame

Prints information about the selected frame including:
*  goroutine number
*  location
*  function and parameter names

See also backtrace.
`,
		Min_args:   0,
		Max_args:   0,
		Short_help: "Show information about the selected frame",
		Name:       "frame",
	})
}
Exemplo n.º 15
0
func init() {
	parent := "info"
	gub.AddSubCommand(parent, &gub.SubcmdInfo{
		Fn: InfoProgramSubcmd,
		Help: `info program

Prints information about the program including:
*  instruction number
*  block number
*  function number
*  stop event
*  source-code position

See "info pc" for information concerning negative PC values.
`,
		Min_args:   0,
		Max_args:   0,
		Short_help: "Information about debugged program",
		Name:       "program",
	})
}
Exemplo n.º 16
0
func init() {
	parent := "info"
	gub.AddSubCommand(parent, &gub.SubcmdInfo{
		Fn: InfoBreakpointSubcmd,
		Help: `info breakpoint [num...]

Show status of user-settable breakpoints. If no breakpoint numbers are
given, the show all breakpoints. Otherwise only those breakpoints
listed are shown and the order given.

The "Disp" column contains one of "keep", "del", the disposition of
the breakpoint after it gets hit.

The "enb" column indicates whether the breakpoint is enabled.

The "Where" column indicates where the breakpoint is located.
Status of user-settable breakpoints.
`,
		Min_args:   0,
		Max_args:   -1,
		Short_help: "Status of user-settable breakpoints",
		Name:       "breakpoint",
	})
}