From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D674A383E6AC; Tue, 14 Jun 2022 07:20:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D674A383E6AC From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug testsuite/29049] [gdb, check-read1] FAIL: gdb.rust/unicode.exp: print D in string Date: Tue, 14 Jun 2022 07:20:42 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: testsuite X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jun 2022 07:20:42 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29049 --- Comment #2 from Tom de Vries --- (In reply to Tom Tromey from comment #1) > I don't really have a theory about this one. > I don't see why read1 would affect this. I've tried this to see if this was related to reading in the .exp file: ... diff --git a/gdb/testsuite/gdb.rust/unicode.exp b/gdb/testsuite/gdb.rust/un= icod e.exp index d091a8ac92e..ae22033bcfd 100644 --- a/gdb/testsuite/gdb.rust/unicode.exp +++ b/gdb/testsuite/gdb.rust/unicode.exp @@ -41,11 +41,15 @@ if {![runto ${srcfile}:$line]} { return -1 } -gdb_test "print =F0=9D=95=AF" " =3D 98" "print D" -gdb_test "print \"=F0=9D=95=AF\"" " =3D \"=F0=9D=95=AF\"" "print D in stri= ng" +gdb_test "show charset" + +set dsym [encoding convertfrom utf-8 \xf0\x9D\x95\xaf] +set csym [encoding convertfrom utf-8 \xc3\xa7] +gdb_test "print $dsym" " =3D 98" "print D" +gdb_test "print \"$dsym\"" " =3D \"$dsym\"" "print D in string" # This output is maybe not ideal, but it also isn't incorrect. -gdb_test "print '=F0=9D=95=AF'" " =3D 120175 '\\\\u\\\{01d56f\\\}'" \ +gdb_test "print '$dsym'" " =3D 120175 '\\\\u\\\{01d56f\\\}'" \ "print D as char" -gdb_test "print c=C3=A7" " =3D 97" "print cc" +gdb_test "print c$csym" " =3D 97" "print cc" -gdb_test "print '=C3=A7c'" "overlong character literal" "print cc as char" +gdb_test "print '${csym}c'" "overlong character literal" "print cc as c har" ... but that didn't help. --=20 You are receiving this mail because: You are on the CC list for the bug.=