public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "liushuyu011 at gmail dot com" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug d/31580] New: Regression in D class type resolution since GDB 10 Date: Sat, 30 Mar 2024 00:23:30 +0000 [thread overview] Message-ID: <bug-31580-4717@http.sourceware.org/bugzilla/> (raw) https://sourceware.org/bugzilla/show_bug.cgi?id=31580 Bug ID: 31580 Summary: Regression in D class type resolution since GDB 10 Product: gdb Version: HEAD Status: UNCONFIRMED Severity: normal Priority: P2 Component: d Assignee: unassigned at sourceware dot org Reporter: liushuyu011 at gmail dot com Target Milestone: --- Created attachment 15447 --> https://sourceware.org/bugzilla/attachment.cgi?id=15447&action=edit Minimal reproducible example (D source code) Hi there, I have discovered a D class type resolution regression since GDB 10 (it was working properly in GDB 9). Please find the reproducer in the file attached. You can compile the source code using either GDC or LDC2 (both can reproduce this issue): gdc -g -O0 t.d -o t To reproduce the bug, set the breakpoint to t.d:10 and examine the `i` global variable (using `p t.i`). GDB will then complain that "'t.i' has unknown type; cast it to its declared type." I found a workaround to this problem by using `p (uv*)_D1t1iCQf2uv`, but obviously, this is non-ideal: the developer may not know the mangled variable name easily. Since this looks like a regression, I did a simple `git bisect` that led me to this commit: https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=727b7b1864973c2645a554727afd0eaf1303673a. I am unsure how demangle changes could affect the type resolution (maybe it's because GDB got confused about which entity to decode?) -- You are receiving this mail because: You are on the CC list for the bug.
next reply other threads:[~2024-03-30 0:23 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-03-30 0:23 liushuyu011 at gmail dot com [this message] 2024-03-30 19:30 ` [Bug d/31580] " tromey at sourceware dot org 2024-03-30 19:36 ` tromey at sourceware dot org 2024-03-30 19:49 ` tromey at sourceware dot org 2024-03-30 20:10 ` tromey at sourceware dot org 2024-04-02 20:06 ` cvs-commit at gcc dot gnu.org 2024-04-02 20:07 ` tromey at sourceware dot 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-31580-4717@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).