From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6CA56385DC02; Fri, 8 Mar 2024 16:14:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6CA56385DC02 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1709914487; bh=KOgDI26jJ3nYp1OSt/oqF/NO3npQwwtEQOi++AgKETk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=w7dmbggf/ZEq+Ph2YmiK0SDgY1miFqB5CqC+smdfbm61T1CBInpump5KkElr7Vf1p 77x/wX4xeqi5avsGmYQosZTvCUtGmk0T1Fb6KdbTJvtbxTa2wCiOOYh9KexVIV9wO+ 5st1m/dSixkXFBm6BzOsm5tWWQ6V/2X1/ZiLpg+A= From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug gdb/31463] Artificial variables in locals output Date: Fri, 08 Mar 2024 16:14:46 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 14.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at sourceware dot org X-Bugzilla-Status: UNCONFIRMED 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: cc 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=3D31463 Tom Tromey changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tromey at sourceware dot o= rg --- Comment #2 from Tom Tromey --- (In reply to Dmitry Neverov from comment #1) > I don't know if range-loop variables are shown by design or not. Normally gdb just does what the compiler tells it. Ada is a bit special because it emits some forms of debuginfo via symbol names. By default there isn't much of this any more, but there are still a few cases that can't be avoided. It would be fine by me to give Python a way to detect artificiality. Omitting artificial variables via some option would also be fine. I suppose my view is that, overall, seeing these isn't too confusing, and might be helpful in some cases when debugging. It lets you inspect a compiler transform and see some objects that would otherwise be inaccessible -- like if you want to debug some iterator implementation. --=20 You are receiving this mail because: You are on the CC list for the bug.=