Skip to content

Commit b850f36

Browse files
cmd/compile: always print stack trace for -dpanic
Change-Id: I40cfc87731d3a29670a3e183948898ea0cb2402d Reviewed-on: https://go-review.googlesource.com/c/go/+/380534 Trust: Ian Lance Taylor <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> Reviewed-by: Russ Cox <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
1 parent 48ec6df commit b850f36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cmd/compile/internal/base/print.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,10 @@ func FatalfAt(pos src.XPos, format string, args ...interface{}) {
217217
fmt.Printf("\n")
218218

219219
// If this is a released compiler version, ask for a bug report.
220-
if strings.HasPrefix(buildcfg.Version, "go") {
220+
if Debug.Panic == 0 && strings.HasPrefix(buildcfg.Version, "go") {
221221
fmt.Printf("\n")
222222
fmt.Printf("Please file a bug report including a short program that triggers the error.\n")
223-
fmt.Printf("https://golang.org/issue/new\n")
223+
fmt.Printf("https://go.dev/issue/new\n")
224224
} else {
225225
// Not a release; dump a stack trace, too.
226226
fmt.Println()

0 commit comments

Comments
 (0)