Esempio n. 1
0
func ContinueCommand(args []string) {
	for fr := gub.TopFrame(); fr != nil; fr = fr.Caller(0) {
		interp.SetStepOff(fr)
	}
	gub.InCmdLoop = false
	gub.Msg("Continuing...")
}
Esempio n. 2
0
func BacktraceCommand(args []string) {
	count := gub.MAXSTACKSHOW
	var err error
	if len(args) > 1 {
		count, err = gub.GetInt(args[1], "maximum count",
			0, gub.MAXSTACKSHOW)
		if err != nil {
			return
		}
	}
	gub.PrintStack(gub.TopFrame(), count)
}
Esempio n. 3
0
func InfoStackSubcmd(args []string) {
	gub.PrintStack(gub.TopFrame(), gub.MAXSTACKSHOW)
}
Esempio n. 4
0
func FinishCommand(args []string) {
	interp.SetStepOut(gub.TopFrame())
	gub.Msg("Continuing until return...")
	gub.InCmdLoop = false
}
Esempio n. 5
0
func NextCommand(args []string) {
	interp.SetStepOver(gub.TopFrame())
	gub.Msg("Step over...")
	gub.LastCommand = "next " + gub.CmdArgstr
	gub.InCmdLoop = false
}