From 769a1cf7b6b79e747e3a4d886992b2a7e54f33d7 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 29 Apr 2020 19:47:34 -0700 Subject: [PATCH] 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 --- src/debug/gosym/symtab.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } -- 2.51.0