diff options
| author | Michael Pratt <mpratt@google.com> | 2022-09-06 17:57:07 -0400 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2022-09-07 15:11:05 +0000 |
| commit | 196003f9fd8d754a926ea8bc3aa5207eaea87528 (patch) | |
| tree | 6daa1e906a91a7d39d4c541ce540e7e41df4d7fc /src/runtime/traceback.go | |
| parent | d81ed4d62192cd89dbf664c42e26c35a052dd9ce (diff) | |
| download | go-196003f9fd8d754a926ea8bc3aa5207eaea87528.tar.xz | |
runtime: rename _func.nameoff and friends to nameOff
Switch to the more Go-style name to match inlinedCall.nameOff.
Change-Id: I2115b27af8309e1ead7d61ecc65fe4fc966030f7
Reviewed-on: https://go-review.googlesource.com/c/go/+/428657
Run-TryBot: Michael Pratt <mpratt@google.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/runtime/traceback.go')
| -rw-r--r-- | src/runtime/traceback.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/runtime/traceback.go b/src/runtime/traceback.go index 96acec0ddd..396b3fafbc 100644 --- a/src/runtime/traceback.go +++ b/src/runtime/traceback.go @@ -405,7 +405,7 @@ func gentraceback(pc0, sp0, lr0 uintptr, gp *g, skip int, pcbuf *uintptr, max in // Create a fake _func for the // inlined function. - inlFunc.nameoff = inltree[ix].nameOff + inlFunc.nameOff = inltree[ix].nameOff inlFunc.funcID = inltree[ix].funcID if (flags&_TraceRuntimeFrames) != 0 || showframe(inlFuncInfo, gp, nprint == 0, inlFuncInfo.funcID, lastFuncID) { @@ -808,7 +808,7 @@ func printAncestorTracebackFuncInfo(f funcInfo, pc uintptr) { inltree := (*[1 << 20]inlinedCall)(inldata) ix := pcdatavalue(f, _PCDATA_InlTreeIndex, pc, nil) if ix >= 0 { - name = funcnameFromNameoff(f, inltree[ix].nameOff) + name = funcnameFromNameOff(f, inltree[ix].nameOff) } } file, line := funcline(f, pc) @@ -852,7 +852,7 @@ func showframe(f funcInfo, gp *g, firstFrame bool, funcID, childID funcID) bool // be printed during a traceback. func showfuncinfo(f funcInfo, firstFrame bool, funcID, childID funcID) bool { // Note that f may be a synthesized funcInfo for an inlined - // function, in which case only nameoff and funcID are set. + // function, in which case only nameOff and funcID are set. level, _, _ := gotraceback() if level > 1 { |
