go/src/debug
Russ Cox 931d80ec17 cmd/go: adjust BuildInfo.Settings
Make Settings more closely align with command-line flags
and environment variables.

- Change command-line flags to begin with -

- Change syntax of build lines to use Key=Value instead of Key<tab>Value.

- Change CGO_ENABLED to 0/1, matching environment variable,
  instead of false/true.

- Add GOOS and GOARCH.
  These are technically redundant, in that they can be extracted
  from the binary in other ways most of the time, but not always:
  GOOS=ios and GOOS=darwin may produce binaries that are
  difficult to tell apart. In any case, it's a lot easier to have them
  directly in the settings list than derive them from other parts
  of the binary.

- Add GOEXPERIMENT.
  These could be inferred from the tags list, but the experiments
  are being removed from the tags list.

- Change the tags list to match the -tags command-line argument.

- Add msan and race, echoing the -msan and -race arguments
  (always 'true' when present, omitted when false).

- Add GO$GOARCH when set.

Change-Id: Icb59ef4faa5c22407eadd94147b7e53cf4344ce6
Reviewed-on: https://go-review.googlesource.com/c/go/+/358539
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
2021-11-30 18:09:02 +00:00
..
buildinfo cmd/go: adjust BuildInfo.Settings 2021-11-30 18:09:02 +00:00
dwarf debug/dwarf: better error message when reading absent debug_line_str 2021-11-15 23:55:09 +00:00
elf cmd/link: enable internal linking of PIE binaries on ppc64le 2021-11-05 19:14:22 +00:00
gosym cmd/internal/objfile, debug/gosym: use the address of runtime.text as textStart 2021-11-24 16:01:55 +00:00
macho debug/pe,debug/macho: add support for DWARF5 sections 2021-11-16 18:36:59 +00:00
pe debug/pe,debug/macho: add support for DWARF5 sections 2021-11-16 18:36:59 +00:00
plan9obj debug/plan9obj: export ErrNoSymbols 2021-11-05 21:27:19 +00:00