From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 78DDA3858413; Wed, 6 Sep 2023 14:58:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 78DDA3858413 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1694012283; bh=rNAnqhn3rshcs0wOug+/o1JJfaNeAxpSXzji0adRe/Q=; h=From:To:Subject:Date:In-Reply-To:References:From; b=TjHZeYTPKFtWMVbKkmL8V3VYfsnepxlAtPF4f0pwGpLmbbrqK1O6yNnygEoDyG+5Y RyK2T1qUC9LkzFxBc3d+hBo4nY+NnFxrLQ9ZKFyxuu7DYmIOYRKW14zqgir3d0aqtY hDYPdE1LbQPddxDrg7IjwYB05k+DTi7QLkQ4e8/A= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug ada/30726] [gdb/ada] FAIL: gdb.ada/arr_acc_idx_w_gap.exp: enum_rep Date: Wed, 06 Sep 2023 14:58:03 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed 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: 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30726 --- Comment #6 from Tom de Vries --- (In reply to Tom de Vries from comment #4) > Fixed by: Well, in the sense that we have: ... $ gdb -q -batch ./enum_with_gap_main-all -ex "print enum_with_gaps'enum_rep(lit3)" $1 =3D 13 $ gdb -q -batch ./enum_with_gap_main-all -ex "print enum_subrange'enum_rep(lit3)" $1 =3D 13 $ gdb -q -batch ./enum_with_gap_main-all.dwz -ex "print enum_with_gaps'enum_rep(lit3)" $1 =3D 13 $ gdb -q -batch ./enum_with_gap_main-all.dwz -ex "print enum_subrange'enum_rep(lit3)" $1 =3D 13 ... When running the test-case, we run into the unsurprising fallout: ... (gdb) print indexed_by_enum(lit2..lit4)^M Multiple matches for lit4^M [0] cancel^M [1] enum_with_gap.enum_with_gaps'(enum_with_gap.lit4) (enumeral)^M [2] enum_with_gap.enum_subrangeB'(enum_with_gap.lit4) (enumeral)^M > FAIL: gdb.ada/arr_acc_idx_w_gap.exp: scenario=3Dall: print indexed_by_enu= m(lit2..lit4) (timeout) ... Interestingly, the test-case that is supposed to fail is passing because the compiler drops an unused type, this fixes that: ... diff --git a/gdb/testsuite/gdb.ada/same_enum/a.adb b/gdb/testsuite/gdb.ada/same_enum/a.adb index ef2cceb3e60..4612aaa7283 100644 --- a/gdb/testsuite/gdb.ada/same_enum/a.adb +++ b/gdb/testsuite/gdb.ada/same_enum/a.adb @@ -17,7 +17,7 @@ with Pck; use Pck; procedure A is FC : Color :=3D Red; - SC : Color :=3D Green; + SC : RGB_Color :=3D Green; begin Do_Nothing (FC'Address); Do_Nothing (SC'Address); ... Anyway, the fallout is limited to gdb.ada/arr_acc_idx_w_gap.exp and the fix= ed gdb.ada/same_enum.exp test-cases, all other test-cases pass. --=20 You are receiving this mail because: You are on the CC list for the bug.=