From 196003f9fd8d754a926ea8bc3aa5207eaea87528 Mon Sep 17 00:00:00 2001 From: Michael Pratt Date: Tue, 6 Sep 2022 17:57:07 -0400 Subject: 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 Auto-Submit: Michael Pratt TryBot-Result: Gopher Robot Reviewed-by: Cherry Mui --- src/runtime/traceback.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/runtime/traceback.go') 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 { -- cgit v1.3-5-g9baa