aboutsummaryrefslogtreecommitdiff
path: root/src/debug
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2020-04-29 19:47:34 -0700
committerIan Lance Taylor <iant@golang.org>2020-04-30 03:07:49 +0000
commit769a1cf7b6b79e747e3a4d886992b2a7e54f33d7 (patch)
treec751ef25126e9e773c6d05a23893076cce6fb525 /src/debug
parenteda6fe3572b2fb02c2a8c87892744d04fea87691 (diff)
downloadgo-769a1cf7b6b79e747e3a4d886992b2a7e54f33d7.tar.gz
go-769a1cf7b6b79e747e3a4d886992b2a7e54f33d7.zip
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 <bradfitz@golang.org>
Diffstat (limited to 'src/debug')
-rw-r--r--src/debug/gosym/symtab.go4
1 files 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
}