]> Cypherpunks repositories - gostls13.git/commitdiff
debug/gosym: correct comments for Table.{Files,Objs}
authorIan Lance Taylor <iant@golang.org>
Thu, 30 Apr 2020 02:47:34 +0000 (19:47 -0700)
committerIan Lance Taylor <iant@golang.org>
Thu, 30 Apr 2020 03:07:49 +0000 (03:07 +0000)
The fields aren't too useful for Go 1.2 and later, but they aren't
actually nil.

Fixes #38754

Change-Id: Ia13a224f623697a00dea8ba0225633e1b9308c9f
Reviewed-on: https://go-review.googlesource.com/c/go/+/230940
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/debug/gosym/symtab.go

index 3be612e1df7ab0967847033fc7a96b4547f1e29c..00701c2875aaace9dac055a40c93ef073556891c 100644 (file)
@@ -121,8 +121,8 @@ type Obj struct {
 type Table struct {
        Syms  []Sym // nil for Go 1.3 and later binaries
        Funcs []Func
-       Files map[string]*Obj // nil for Go 1.2 and later binaries
-       Objs  []Obj           // nil for Go 1.2 and later binaries
+       Files map[string]*Obj // for Go 1.2 and later all files map to one Obj
+       Objs  []Obj           // for Go 1.2 and later only one Obj in slice
 
        go12line *LineTable // Go 1.2 line number table
 }