Descriptionruntime/debug: fix incorrect Stack output if package path contains a dot
Although debug.Stack is deprecated, it should still return the correct result.
Output before this CL (using a trivial library in $GOPATH/test.com/a):
/home/vince/src/test.com/a/lib.go:9 (0x42311e)
com/a.ShowStack: os.Stdout.Write(debug.Stack())
Output with this CL applied:
/home/vince/src/test.com/a/lib.go:9 (0x42311e)
ShowStack: os.Stdout.Write(debug.Stack())
Patch Set 1 #Patch Set 2 : diff -r a41f8780d8b0 https://go.googlecode.com/hg/ #Patch Set 3 : diff -r a41f8780d8b0 https://go.googlecode.com/hg/ #
Total comments: 1
Patch Set 4 : diff -r a41f8780d8b0 https://go.googlecode.com/hg/ #Patch Set 5 : diff -r a41f8780d8b0 https://go.googlecode.com/hg/ #MessagesTotal messages: 5
|