From: Ian Lance Taylor Date: Thu, 30 Apr 2020 02:47:34 +0000 (-0700) Subject: debug/gosym: correct comments for Table.{Files,Objs} X-Git-Tag: go1.15beta1~288 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=769a1cf7b6b79e747e3a4d886992b2a7e54f33d7;p=gostls13.git debug/gosym: correct comments for Table.{Files,Objs} 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 --- diff --git a/src/debug/gosym/symtab.go b/src/debug/gosym/symtab.go index 3be612e1df..00701c2875 100644 --- a/src/debug/gosym/symtab.go +++ b/src/debug/gosym/symtab.go @@ -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 }