diff options
| author | Michael Pratt <mpratt@google.com> | 2022-09-06 18:02:13 -0400 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2022-09-07 16:39:44 +0000 |
| commit | 027ff3f47d5d6557067324c342c8e14d7da1cf7a (patch) | |
| tree | c3c775b9ca4d43c641a2e847720717c935e87e92 /src/debug | |
| parent | 3e758593905c1377b0db8d388839171159d0fea5 (diff) | |
| download | go-027ff3f47d5d6557067324c342c8e14d7da1cf7a.tar.xz | |
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 <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Michael Pratt <mpratt@google.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
Diffstat (limited to 'src/debug')
| -rw-r--r-- | src/debug/gosym/pclntab.go | 4 |
1 files 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) } |
