public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "vries at gcc dot gnu.org" <sourceware-bugzilla@sourceware.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 [thread overview] Message-ID: <bug-30726-4717-2zhbJ6BljR@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-30726-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=30726 --- Comment #6 from Tom de Vries <vries at gcc dot gnu.org> --- (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 = 13 $ gdb -q -batch ./enum_with_gap_main-all -ex "print enum_subrange'enum_rep(lit3)" $1 = 13 $ gdb -q -batch ./enum_with_gap_main-all.dwz -ex "print enum_with_gaps'enum_rep(lit3)" $1 = 13 $ gdb -q -batch ./enum_with_gap_main-all.dwz -ex "print enum_subrange'enum_rep(lit3)" $1 = 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=all: print indexed_by_enum(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 := Red; - SC : Color := Green; + SC : RGB_Color := 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 fixed gdb.ada/same_enum.exp test-cases, all other test-cases pass. -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2023-09-06 14:58 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-08-06 13:06 [Bug ada/30726] New: [gdb/ada, cc-with-dwz] " vries at gcc dot gnu.org 2023-08-06 14:28 ` [Bug ada/30726] " vries at gcc dot gnu.org 2023-08-06 14:39 ` vries at gcc dot gnu.org 2023-08-06 15:05 ` tromey at sourceware dot org 2023-08-07 1:08 ` vries at gcc dot gnu.org 2023-09-06 13:04 ` vries at gcc dot gnu.org 2023-09-06 13:15 ` [Bug ada/30726] [gdb/ada] " vries at gcc dot gnu.org 2023-09-06 14:58 ` vries at gcc dot gnu.org [this message] 2023-09-06 15:27 ` vries at gcc dot gnu.org 2023-09-06 15:56 ` vries at gcc dot gnu.org 2023-09-06 18:02 ` vries at gcc dot gnu.org 2023-09-07 19:39 ` cvs-commit at gcc dot gnu.org 2023-09-07 19:41 ` vries at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-30726-4717-2zhbJ6BljR@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).