From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1D654384BC33; Wed, 17 Mar 2021 17:11:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1D654384BC33 From: "ssbssa at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug tui/17849] Showing local variables in gdb tui window Date: Wed, 17 Mar 2021 17:11:29 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: tui X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: ssbssa at sourceware dot 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: 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 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Mar 2021 17:11:30 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D17849 Hannes Domani changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ssbssa at sourceware dot o= rg --- Comment #9 from Hannes Domani --- (In reply to Paul Buxton from comment #8) > It looks like Hannes implementation is much more complete and polished. > Mine was mostly just a weekend experiment. I do think there is value in > having a variables window 'disconnected' from display behaviour though. My > watches window (which might be confusingly named) maintains it's own list > of statements to parse_and_eval. If others think this is worthwhile I wou= ld > be happy to update it and send it in for contribution? At first I also didn't use the display variables, and instead had a 'watch' window, and corresponding commands 'watch-add' and 'watch-del', very simila= r to yours. The main reason I changed this to the display variables was that you don't = need to remember new commands. Also, the display command knows which frame an expression belongs to. But it would be easy to re-add the watch window, I just need to derive it f= rom the VariableWindow class, containing a variables() function which returns t= he statements+values. I already had this kind of stuff in mind, in case someone wanted multiple w= atch windows, or other custom variable windows (like if you are in a python fram= e, show the local python variables). --=20 You are receiving this mail because: You are on the CC list for the bug.=