]> Cypherpunks repositories - gostls13.git/commit
runtime/debug: fix incorrect Stack output if package path contains a dot
authorVincent Vanackere <vincent.vanackere@gmail.com>
Mon, 27 Jan 2014 22:00:00 +0000 (14:00 -0800)
committerIan Lance Taylor <iant@golang.org>
Mon, 27 Jan 2014 22:00:00 +0000 (14:00 -0800)
commitd7c14655a9a022ea900d25b49bda3c474cd1b97c
tree6604c86c2cf50a6184c0474c8fa2f0bb153f626f
parent86a3a542844a8c6040656006697e16b207c1d3f6
runtime/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())

LGTM=iant
R=golang-codereviews, iant
CC=golang-codereviews
https://golang.org/cl/57330043
src/pkg/runtime/debug/stack.go