]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: use raw strings to avoid double escapes
authorguoguangwu <guoguangwug@gmail.com>
Fri, 7 Jun 2024 04:07:05 +0000 (04:07 +0000)
committerGopher Robot <gobot@golang.org>
Mon, 22 Jul 2024 21:50:36 +0000 (21:50 +0000)
Change-Id: I9b24ff7dec0825a8a9d094dfef6553aa605ef47d
GitHub-Last-Rev: 785589211cea172377bb67e895491d8678939600
GitHub-Pull-Request: golang/go#67871
Reviewed-on: https://go-review.googlesource.com/c/go/+/591257
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/cmd/compile/internal/ssa/debug_test.go

index 2f21aca784ac8daac99fdca2e40a3b7f0b4a4a09..5920428bf982fef40355e43a5aa8203476c0dfd6 100644 (file)
@@ -591,7 +591,7 @@ func newGdb(t testing.TB, tag, executable string, args ...string) dbgr {
        s := &gdbState{tagg: tag, cmd: cmd, args: args}
        s.atLineRe = regexp.MustCompile("(^|\n)([0-9]+)(.*)")
        s.funcFileLinePCre = regexp.MustCompile(
-               "([^ ]+) [(][^)]*[)][ \\t\\n]+at ([^:]+):([0-9]+)")
+               `([^ ]+) [(][^)]*[)][ \t\n]+at ([^:]+):([0-9]+)`)
        // runtime.main () at /Users/drchase/GoogleDrive/work/go/src/runtime/proc.go:201
        //                                    function              file    line
        // Thread 2 hit Breakpoint 1, main.main () at /Users/drchase/GoogleDrive/work/debug/hist.go:18