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) }