public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/30908] New: [gdb/ada, gcc 13] FAIL: gdb.ada/str_binop_equal.exp: print my_str = "ABCD"
@ 2023-09-26 15:11 vries at gcc dot gnu.org
  2023-09-26 15:37 ` [Bug ada/30908] " tromey at sourceware dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: vries at gcc dot gnu.org @ 2023-09-26 15:11 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 30908
           Summary: [gdb/ada, gcc 13] FAIL: gdb.ada/str_binop_equal.exp:
                    print my_str = "ABCD"
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ada
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

With gcc 13.2.1, I run into a cluster of fails:
...
FAIL: gdb.ada/str_binop_equal.exp: print my_str = "ABCD"
FAIL: gdb.ada/widewide.exp: print my_wws = " helo"
FAIL: gdb.ada/widewide.exp: print my_ws = "wide"
...

I Investigated the middle one, using:
...
+gdb_test "set debug expr 1"                                                    
 gdb_test "print my_wws = \" helo\"" " = true"                                  
+gdb_test "set debug expr 0"                                                    
...

With gcc 7.5.0 I get:
...
(gdb) print my_wws = " helo"^M
Operation: BINOP_EQUAL^M
 Operation: BINOP_EQUAL^M
 Operation: OP_VAR_VALUE^M
  Block symbol:^M
   Symbol: my_wws^M
    Type: array (1 .. 5) of wide_wide_character^M
   Block: 0x2e25f70^M
 Operation: OP_STRING^M
  String:  helo^M
$7 = true^M
(gdb) PASS: gdb.ada/widewide.exp: print my_wws = " helo"
...

With gcc 13.2.1 I get:
...
(gdb) print my_wws = " helo"^M
Operation: OP_FUNCALL^M
 Operation: OP_VAR_VALUE^M
  Block symbol:^M
   Symbol: ada.strings.maps."="^M
    Type: function (a1: <ref> ada.strings.maps.character_set; a2: <ref>
ada.strings.maps.character_set) return boolean^M
   Block: 0x3a9e450^M
 Vector:^M
  Operation: OP_VAR_VALUE^M
   Block symbol:^M
    Symbol: my_wws^M
     Type: array (1 .. 5) of wide_wide_character^M
    Block: 0x3855d00^M
  Operation: OP_STRING^M
   String:  helo^M
$7 = false^M
(gdb) FAIL: gdb.ada/widewide.exp: print my_wws = " helo"
...

I don't know what's the cause of the difference, but I'm tentatively
classifying this as an ada problem.

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

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

end of thread, other threads:[~2024-02-27 15:21 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-26 15:11 [Bug ada/30908] New: [gdb/ada, gcc 13] FAIL: gdb.ada/str_binop_equal.exp: print my_str = "ABCD" vries at gcc dot gnu.org
2023-09-26 15:37 ` [Bug ada/30908] " tromey at sourceware dot org
2023-09-26 17:14 ` vries at gcc dot gnu.org
2023-09-26 23:31 ` vries at gcc dot gnu.org
2023-09-27  6:58 ` vries at gcc dot gnu.org
2023-10-01 13:26 ` vries at gcc dot gnu.org
2023-10-02 17:48 ` cvs-commit at gcc dot gnu.org
2024-02-26 18:38 ` tromey at sourceware dot org
2024-02-27 11:14 ` vries at gcc dot gnu.org
2024-02-27 11:23 ` vries at gcc dot gnu.org
2024-02-27 15:21 ` cvs-commit 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).