public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "tromey at sourceware dot org" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug rust/31079] Rustc test not hitting bp as expected for 1.73 or greater versions Date: Tue, 21 Nov 2023 22:41:13 +0000 [thread overview] Message-ID: <bug-31079-4717-qGhJwfrbjC@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-31079-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=31079 Tom Tromey <tromey at sourceware dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tromey at sourceware dot org --- Comment #1 from Tom Tromey <tromey at sourceware dot org> --- With git master, info locals shows both variables: (gdb) info local _x _x = 0 _x = 5 "_x = 0" is wrong but at the same time, gdb is just using the location expression the compiler gave it. I see rustc now emits lexical blocks to try to explain the shadowing. However, in this simple of a test case, they end up all having the same range. disassemble/s also shows the lines are reordered, even with 'opt-level=0'. Not sure what is up there, but often these very simple tests aren't the best view into what the compiler is doing. FWIW normally if two different compilers exhibit different behavior in the same version of gdb, that points to a compiler issue. gdb is normally at the mercy of the debuginfo that the compiler creates. -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2023-11-21 22:41 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-11-21 8:21 [Bug rust/31079] New: " abdul.basitijaz at gmail dot com 2023-11-21 22:41 ` tromey at sourceware dot org [this message] 2023-11-21 22:41 ` [Bug rust/31079] " sam at gentoo 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-31079-4717-qGhJwfrbjC@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).