[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
sourceware-bugzilla@sourceware.org
Tue Sep 26 15:11:41 GMT 2023
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.
More information about the Gdb-prs
mailing list