diff options
| author | Michael Pratt <mpratt@google.com> | 2022-09-02 16:59:07 -0400 |
|---|---|---|
| committer | Michael Pratt <mpratt@google.com> | 2022-09-07 14:47:36 +0000 |
| commit | d81ed4d62192cd89dbf664c42e26c35a052dd9ce (patch) | |
| tree | c4af810f425ad432945360cb43e3f3f7255c8263 /src/runtime/traceback.go | |
| parent | 0752f4a12cfd212ed5a5fdfc8696811d89b12acf (diff) | |
| download | go-d81ed4d62192cd89dbf664c42e26c35a052dd9ce.tar.xz | |
runtime: rename inlinedCall.func_ to inlinedCall.nameOff
The meaning of this field is unchanged, this CL simply gives it a more
descriptive name, as func_ makes it sound like a reference to the _func.
Change-Id: I70e54f34bede7636ce4d7b9dd0f7557308f02143
Reviewed-on: https://go-review.googlesource.com/c/go/+/427961
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
Reviewed-by: Austin Clements <austin@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/runtime/traceback.go')
| -rw-r--r-- | src/runtime/traceback.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/traceback.go b/src/runtime/traceback.go index 286e9c610e..96acec0ddd 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].func_ + 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].func_) + name = funcnameFromNameoff(f, inltree[ix].nameOff) } } file, line := funcline(f, pc) |
