public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "ssbssa at sourceware dot org" <sourceware-bugzilla@sourceware.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	[thread overview]
Message-ID: <bug-17849-4717-XRoRmIw7gi@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-17849-4717@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=17849

Hannes Domani <ssbssa at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ssbssa at sourceware dot org

--- Comment #9 from Hannes Domani <ssbssa at sourceware dot org> ---
(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 would
> 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 similar 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 from
the VariableWindow class, containing a variables() function which returns the
statements+values.
I already had this kind of stuff in mind, in case someone wanted multiple watch
windows, or other custom variable windows (like if you are in a python frame,
show the local python variables).

-- 
You are receiving this mail because:
You are on the CC list for the bug.

  parent reply	other threads:[~2021-03-17 17:11 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-17 17:41 [Bug tui/17849] New: " hlin117 at gmail dot com
2015-07-02 14:11 ` [Bug tui/17849] " palves at redhat dot com
2021-03-14 17:44 ` paulbuxton.mail at googlemail dot com
2021-03-14 18:53 ` tromey at sourceware dot org
2021-03-15  7:56 ` paulbuxton.mail at googlemail dot com
2021-03-17 17:11 ` ssbssa at sourceware dot org [this message]
2023-06-17 17:41 ` tromey at sourceware dot org
2023-06-18  6:59 ` paulbuxton.mail at googlemail dot com
2023-11-03 17:52 ` paulbuxton.mail at googlemail dot com
2023-11-11 16:41 ` tromey at sourceware dot org
2023-11-11 22:45 ` ssbssa 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-17849-4717-XRoRmIw7gi@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: link
Be 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).