From: Josh Bleecher Snyder Date: Sun, 16 Apr 2017 21:48:16 +0000 (-0700) Subject: cmd/internal/obj: pretty-print LSym.Type when debugging X-Git-Tag: go1.9beta1~672 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=bb215de8a67bc294d933df0413376be7e973d404;p=gostls13.git cmd/internal/obj: pretty-print LSym.Type when debugging We have a stringer for LSym.Type. Use it. Before: "".algarray t=31 size=224 After: "".algarray SBSS size=224 Change-Id: Ib4c7d2bc1dbe9943cf2a5dfa5d9f2d7fbd50b7f2 Reviewed-on: https://go-review.googlesource.com/40862 Run-TryBot: Josh Bleecher Snyder TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- diff --git a/src/cmd/internal/obj/objfile.go b/src/cmd/internal/obj/objfile.go index 518aab18da..8f54a9c728 100644 --- a/src/cmd/internal/obj/objfile.go +++ b/src/cmd/internal/obj/objfile.go @@ -318,7 +318,7 @@ func (w *objWriter) writeSymDebug(s *LSym) { fmt.Fprintf(ctxt.Bso, "v=%d ", s.Version) } if s.Type != 0 { - fmt.Fprintf(ctxt.Bso, "t=%d ", s.Type) + fmt.Fprintf(ctxt.Bso, "%v ", s.Type) } if s.DuplicateOK() { fmt.Fprintf(ctxt.Bso, "dupok ")