func ContinueCommand(args []string) { for fr := gub.TopFrame(); fr != nil; fr = fr.Caller(0) { interp.SetStepOff(fr) } gub.InCmdLoop = false gub.Msg("Continuing...") }
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) }
func InfoStackSubcmd(args []string) { gub.PrintStack(gub.TopFrame(), gub.MAXSTACKSHOW) }
func FinishCommand(args []string) { interp.SetStepOut(gub.TopFrame()) gub.Msg("Continuing until return...") gub.InCmdLoop = false }
func NextCommand(args []string) { interp.SetStepOver(gub.TopFrame()) gub.Msg("Step over...") gub.LastCommand = "next " + gub.CmdArgstr gub.InCmdLoop = false }