From 027ff3f47d5d6557067324c342c8e14d7da1cf7a Mon Sep 17 00:00:00 2001 From: Michael Pratt Date: Tue, 6 Sep 2022 18:02:13 -0400 Subject: [PATCH] debug/gosym: rename nameoff to nameOff to match runtime Change-Id: Id33526e56bb25bc06746355f95045c5ef3c795c1 Reviewed-on: https://go-review.googlesource.com/c/go/+/428660 Reviewed-by: Cherry Mui TryBot-Result: Gopher Robot Run-TryBot: Michael Pratt Auto-Submit: Michael Pratt --- src/debug/gosym/pclntab.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/debug/gosym/pclntab.go b/src/debug/gosym/pclntab.go index 5832ded6ea..a87e6cfc1b 100644 --- a/src/debug/gosym/pclntab.go +++ b/src/debug/gosym/pclntab.go @@ -314,7 +314,7 @@ func (t *LineTable) go12Funcs() []Func { syms[i] = Sym{ Value: f.Entry, Type: 'T', - Name: t.funcName(info.nameoff()), + Name: t.funcName(info.nameOff()), GoType: 0, Func: f, goVersion: t.version, @@ -456,7 +456,7 @@ func (f *funcData) entryPC() uint64 { return f.t.uintptr(f.data) } -func (f funcData) nameoff() uint32 { return f.field(1) } +func (f funcData) nameOff() uint32 { return f.field(1) } func (f funcData) deferreturn() uint32 { return f.field(3) } func (f funcData) pcfile() uint32 { return f.field(5) } func (f funcData) pcln() uint32 { return f.field(6) }