From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B91E63858D35; Sun, 6 Aug 2023 13:06:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B91E63858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1691327180; bh=ZCHw2hUuUHdhVVFS6RUdgDmXRi9dI5jAXXEGcdCukvc=; h=From:To:Subject:Date:From; b=aTTQzfuHVND3MVPsavEa2JcJlkFAmws2uGa3Hg6FHorwqpgXB4wwJErJ8OgauVfO6 AFtq+i+YdJw2JA/TPtpUFCh+jsnwph4CzlNwwT6LDUb9sIuQefuy1jJPaqOfdKAk8r RQtS1yC5H/yeBafEFSP7nejtkSl3ij7thImqFpY0= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug ada/30726] New: [gdb/ada, cc-with-dwz] FAIL: gdb.ada/arr_acc_idx_w_gap.exp: enum_rep Date: Sun, 06 Aug 2023 13:06:20 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: ada 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30726 Bug ID: 30726 Summary: [gdb/ada, cc-with-dwz] FAIL: gdb.ada/arr_acc_idx_w_gap.exp: enum_rep 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: --- When running with target board cc-with-dwz, I run into: ... (gdb) print enum_with_gaps'enum_rep(lit3)^M 'Enum_Rep requires argument to have same type as enum^M (gdb) FAIL: gdb.ada/arr_acc_idx_w_gap.exp: enum_rep ... With target_board unix, we have instead: ... (gdb) PASS: gdb.ada/arr_acc_idx_w_gap.exp: print s(2) print enum_with_gaps'enum_rep(lit3)^M $16 =3D 13^M (gdb) PASS: gdb.ada/arr_acc_idx_w_gap.exp: enum_rep ... The error happens here: ... 8828 if (!types_equal (type, arg->type ())) 8829 error (_("'Enum_Rep requires argument to have same type as enum= ")); ... because these types are not considered equal: ... (gdb) p type->name () $1 =3D 0x7fffe4673e7d "enum_with_gap__enum_with_gaps" (gdb) p arg->type()->name () $2 =3D 0x7fffe467411f "enum_with_gap__enum_subrangeB" ... With target_board_unix, we have instead: ... (gdb) p type->name () $1 =3D 0x7fffcc666c2d "enum_with_gap__enum_with_gaps" (gdb) p arg->type()->name () $2 =3D 0x7fffcc666c2d "enum_with_gap__enum_with_gaps" ... --=20 You are receiving this mail because: You are on the CC list for the bug.=