mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-29 16:13:47 +00:00
24 lines
362 B
Go
24 lines
362 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"github.com/ethereum/go-ethereum/common"
|
|
"github.com/ethereum/go-ethereum/tests/fuzzers/stacktrie"
|
|
)
|
|
|
|
func main() {
|
|
if len(os.Args) != 2 {
|
|
fmt.Fprintf(os.Stderr, "Usage: debug <file>")
|
|
os.Exit(1)
|
|
}
|
|
crasher := os.Args[1]
|
|
|
|
data := common.VerifyCrasher(crasher)
|
|
if data == nil {
|
|
return
|
|
}
|
|
|
|
stacktrie.Debug(data)
|
|
}
|