Descriptionruntime: show runtime.panic frame in traceback
Otherwise, if panic starts running deferred functions,
the code that panicked appears to be calling those
functions directly, which is not the case and can be
confusing.
For example:
main.Two()
/Users/rsc/x.go:12 +0x2a
runtime.panic(0x20dc0, 0x2100cc010)
/Users/rsc/g/go/src/pkg/runtime/panic.c:248 +0x106
main.One()
/Users/rsc/x.go:8 +0x55
This makes clear(er) that main.Two is being called during
a panic, not as a direct call from main.One.
Fixes issue 5832.
Patch Set 1 #Patch Set 2 : diff -r 46fd4ef6c0de https://code.google.com/p/go/ #Patch Set 3 : diff -r 46fd4ef6c0de https://code.google.com/p/go/ #Patch Set 4 : diff -r 8d19586af772 https://code.google.com/p/go/ #MessagesTotal messages: 3
|