aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/internal/objabi
diff options
context:
space:
mode:
authorKeith Randall <khr@google.com>2018-12-10 12:49:19 -0800
committerKeith Randall <khr@golang.org>2019-01-04 00:00:24 +0000
commitaf134b17da99344812344bba65247e45fa22d53b (patch)
treee9c3222151fd3d61512eb61d5f1c88ee4f0caac7 /src/cmd/internal/objabi
parent688667716ede8b133d361db0a1d47eab24ced7f7 (diff)
downloadgo-af134b17da99344812344bba65247e45fa22d53b.tar.xz
runtime: proper panic tracebacks with mid-stack inlining
As a followon to CL 152537, modify the panic-printing traceback to also handle mid-stack inlining correctly. Also declare -fm functions (aka method functions) as wrappers, so that they get elided during traceback. This fixes part 2 of #26839. Fixes #28640 Fixes #24488 Update #26839 Change-Id: I1c535a9b87a9a1ea699621be1e6526877b696c21 Reviewed-on: https://go-review.googlesource.com/c/153477 Reviewed-by: David Chase <drchase@google.com>
Diffstat (limited to 'src/cmd/internal/objabi')
-rw-r--r--src/cmd/internal/objabi/funcid.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd/internal/objabi/funcid.go b/src/cmd/internal/objabi/funcid.go
index fc9e421836..1792df7cc1 100644
--- a/src/cmd/internal/objabi/funcid.go
+++ b/src/cmd/internal/objabi/funcid.go
@@ -92,5 +92,8 @@ func GetFuncID(name, file string) FuncID {
return FuncID_wrapper
}
}
+ if strings.HasSuffix(name, "-fm") {
+ return FuncID_wrapper
+ }
return FuncID_normal
}