public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/29049] New: [gdb, check-read1] FAIL: gdb.rust/unicode.exp: print D in string
@ 2022-04-12 14:20 vries at gcc dot gnu.org
  2022-04-12 14:21 ` [Bug testsuite/29049] " vries at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: vries at gcc dot gnu.org @ 2022-04-12 14:20 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=29049

            Bug ID: 29049
           Summary: [gdb, check-read1] FAIL: gdb.rust/unicode.exp: print D
                    in string
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: testsuite
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

With make check I get:
...
(gdb) PASS: gdb.rust/unicode.exp: print D
print "𝕯"^M
$2 = "𝕯"^M
(gdb) PASS: gdb.rust/unicode.exp: print D in string
...
but with check-read1 I get instead:
...
(gdb) PASS: gdb.rust/unicode.exp: print D
print "\355\240\265\235\225¯"^M
$2 = "\355\240\265\235\225¯"^M
(gdb) FAIL: gdb.rust/unicode.exp: print D in string
...

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug testsuite/29049] [gdb, check-read1] FAIL: gdb.rust/unicode.exp: print D in string
  2022-04-12 14:20 [Bug testsuite/29049] New: [gdb, check-read1] FAIL: gdb.rust/unicode.exp: print D in string vries at gcc dot gnu.org
@ 2022-04-12 14:21 ` vries at gcc dot gnu.org
  2022-04-14 18:45 ` tromey at sourceware dot org
  2022-06-14  7:20 ` vries at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: vries at gcc dot gnu.org @ 2022-04-12 14:21 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=29049

Tom de Vries <vries at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at sourceware dot org

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug testsuite/29049] [gdb, check-read1] FAIL: gdb.rust/unicode.exp: print D in string
  2022-04-12 14:20 [Bug testsuite/29049] New: [gdb, check-read1] FAIL: gdb.rust/unicode.exp: print D in string vries at gcc dot gnu.org
  2022-04-12 14:21 ` [Bug testsuite/29049] " vries at gcc dot gnu.org
@ 2022-04-14 18:45 ` tromey at sourceware dot org
  2022-06-14  7:20 ` vries at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: tromey at sourceware dot org @ 2022-04-14 18:45 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=29049

--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
I don't really have a theory about this one.
I don't see why read1 would affect this.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug testsuite/29049] [gdb, check-read1] FAIL: gdb.rust/unicode.exp: print D in string
  2022-04-12 14:20 [Bug testsuite/29049] New: [gdb, check-read1] FAIL: gdb.rust/unicode.exp: print D in string vries at gcc dot gnu.org
  2022-04-12 14:21 ` [Bug testsuite/29049] " vries at gcc dot gnu.org
  2022-04-14 18:45 ` tromey at sourceware dot org
@ 2022-06-14  7:20 ` vries at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: vries at gcc dot gnu.org @ 2022-06-14  7:20 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=29049

--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
(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/unicod
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 𝕯" " = 98" "print D"
-gdb_test "print \"𝕯\"" " = \"𝕯\"" "print D in string"
+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" " = 98" "print D"
+gdb_test "print \"$dsym\"" " = \"$dsym\"" "print D in string"
 # This output is maybe not ideal, but it also isn't incorrect.
-gdb_test "print '𝕯'" " = 120175 '\\\\u\\\{01d56f\\\}'" \
+gdb_test "print '$dsym'" " = 120175 '\\\\u\\\{01d56f\\\}'" \
     "print D as char"
-gdb_test "print cç" " = 97" "print cc"
+gdb_test "print c$csym" " = 97" "print cc"

-gdb_test "print 'çc'" "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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-06-14  7:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-12 14:20 [Bug testsuite/29049] New: [gdb, check-read1] FAIL: gdb.rust/unicode.exp: print D in string vries at gcc dot gnu.org
2022-04-12 14:21 ` [Bug testsuite/29049] " vries at gcc dot gnu.org
2022-04-14 18:45 ` tromey at sourceware dot org
2022-06-14  7:20 ` vries at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).