mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: flag "-d=dumpptrs" to print Node ptrs in Dump output
The printing of the ptr values can mean that two dump outputs can't easily be compared for the identical structure, so adding the "-d=dumpptrs" option to make printing of Node pointer values be an option. Change-Id: I0e92b02f069e9de2e6fa036a7841645d13cdd7a9 Reviewed-on: https://go-review.googlesource.com/c/go/+/271339 Trust: Dan Scales <danscales@google.com> Run-TryBot: Dan Scales <danscales@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
parent
4d048194cd
commit
c31540364c
2 changed files with 7 additions and 3 deletions
|
|
@ -46,6 +46,7 @@ var (
|
|||
Debug_closure int
|
||||
Debug_compilelater int
|
||||
debug_dclstack int
|
||||
Debug_dumpptrs int
|
||||
Debug_libfuzzer int
|
||||
Debug_panic int
|
||||
Debug_slice int
|
||||
|
|
@ -75,6 +76,7 @@ var debugtab = []struct {
|
|||
{"compilelater", "compile functions as late as possible", &Debug_compilelater},
|
||||
{"disablenil", "disable nil checks", &disable_checknil},
|
||||
{"dclstack", "run internal dclstack check", &debug_dclstack},
|
||||
{"dumpptrs", "show Node pointer values in Dump/dumplist output", &Debug_dumpptrs},
|
||||
{"gcprog", "print dump of GC programs", &Debug_gcprog},
|
||||
{"libfuzzer", "coverage instrumentation for libfuzzer", &Debug_libfuzzer},
|
||||
{"nil", "print information about nil checks", &Debug_checknil},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue