From: Michael Pratt Date: Fri, 4 Mar 2022 16:17:43 +0000 (-0500) Subject: runtime: print goid when throwing in gentraceback X-Git-Tag: go1.19beta1~1146 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=cc9d3f548a0265124766dfdb45e77cf05579219d;p=gostls13.git runtime: print goid when throwing in gentraceback This makes it easier to figure out where the crash is occurring. Change-Id: Ie1f78a360367090dcd61c61b2a55c34f3e2ff2eb Reviewed-on: https://go-review.googlesource.com/c/go/+/390034 Trust: David Chase Reviewed-by: David Chase Trust: Michael Pratt Run-TryBot: Michael Pratt TryBot-Result: Gopher Robot Reviewed-by: Cherry Mui --- diff --git a/src/runtime/crash_test.go b/src/runtime/crash_test.go index 9b9ab4f3e1..d8cabcdda2 100644 --- a/src/runtime/crash_test.go +++ b/src/runtime/crash_test.go @@ -665,7 +665,7 @@ retry: func TestBadTraceback(t *testing.T) { output := runTestProg(t, "testprog", "BadTraceback") for _, want := range []string{ - "runtime: unexpected return pc", + "unexpected return pc", "called from 0xbad", "00000bad", // Smashed LR in hex dump "