Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(111)

Issue 57330043: code review 57330043: runtime/debug: fix incorrect Stack output if package pa... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 5 months ago by vincent.vanackere
Modified:
11 years, 5 months ago
Reviewers:
iant
CC:
golang-codereviews, iant
Visibility:
Public.

Description

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())

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/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -0 lines) Patch
M src/pkg/runtime/debug/stack.go View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 5
vincent.vanackere
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
11 years, 5 months ago (2014-01-27 16:39:57 UTC) #1
iant
https://codereview.appspot.com/57330043/diff/40001/src/pkg/runtime/debug/stack.go File src/pkg/runtime/debug/stack.go (right): https://codereview.appspot.com/57330043/diff/40001/src/pkg/runtime/debug/stack.go#newcode89 src/pkg/runtime/debug/stack.go:89: // we first remove the path prefix if there ...
11 years, 5 months ago (2014-01-27 17:18:59 UTC) #2
vincent.vanackere
Hello golang-codereviews@googlegroups.com, iant@golang.org (cc: golang-codereviews@googlegroups.com), Please take another look.
11 years, 5 months ago (2014-01-27 21:00:17 UTC) #3
iant
LGTM
11 years, 5 months ago (2014-01-27 21:56:27 UTC) #4
iant
11 years, 5 months ago (2014-01-27 22:00:09 UTC) #5
*** Submitted as https://code.google.com/p/go/source/detail?r=4e3be840c015 ***

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://codereview.appspot.com/57330043

Committer: Ian Lance Taylor <iant@golang.org>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b