示例#1
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)
}
示例#2
0
func InfoStackSubcmd(args []string) {
	gub.PrintStack(gub.TopFrame(), gub.MAXSTACKSHOW)
}