public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Hannes Domani <ssbssa@yahoo.de>
To: Andrew Burgess <andrew.burgess@embecosm.com>
Cc: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: Re: [PATCH 02/22] Create/disable/enable/delete breakpoints in TUI with mouse
Date: Mon, 8 Mar 2021 12:00:08 +0000 (UTC)	[thread overview]
Message-ID: <1882367403.1043481.1615204808474@mail.yahoo.com> (raw)
In-Reply-To: <20210308093206.GI1720904@embecosm.com>

 Am Montag, 8. März 2021, 10:32:09 MEZ hat Andrew Burgess <andrew.burgess@embecosm.com> Folgendes geschrieben:

> * Hannes Domani via Gdb-patches <gdb-patches@sourceware.org> [2021-03-06 18:33:57 +0100]:
>
> > Target area is the first 3 columns of the TUI source window, where the
> > breakpoint status is shown.
> >
> > On a left click, this either creates a new breakpoint, or if one already
> > exists, inverts the enabled state of it.
> > And a middle click deletes the breakpoint.
>
> Thanks for working on this feature, this looks really exciting.
>
> The same breakpoint markers are used for the source and assembler
> windows, both of which inherit from the tui_source_window_base class.
>
> It would be nice if this breakpoint/mouse toggling support was
> supported for both of these windows, possibly by moving the click
> detection up a level in the class hierarchy?

I agree, I just personally didn't have a need for this, usually when I have
the assembler window active, it's in addition with the source window.

So I will try to do this as well.


> The documentation for the TUI is not very extensive, but the
> source/assembler windows, and their breakpoint markers are discussed
> in the 'TUI Overview' section.  I think this change should be
> documented there, as well as mentioned in the NEWS file - this is
> certainly a note worthy new feature.

As I wrote in the series header mail [1], there is still a lot of cleanup
necessary.
And the first point I wrote there was "Add comments", I should have included
documentation (+NEWS) and commit messages.

[1] https://sourceware.org/pipermail/gdb-patches/2021-March/176816.html


> Finally, I think we should consider testing.  I don't know if it is
> possible to send ctrl sequences to the console to emulate mouse
> clicks, but if not then I would suggest this: add a new command
> 'maintenance tui click X Y BUTTON', which injects a button click into
> GDB, X/Y being the click coordinate within the whole GDB terminal, and
> BUTTON being the button number.
>
> Using this it should be possible to test the functionality in this
> patch.

This may be possible on Linux, but these kind of tests will not work on
Windows, where I do all my development.

I can run (most) tests in gdb.base and gdb.python, but e.g. the ones testing
colorized output are not working for me.


 I'm grateful you looked it over, but at this point I was more hoping for
comments on the usability of the new TUI windows and the overall design,
not yet for detailed code comments.


Hannes

  reply	other threads:[~2021-03-08 12:00 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20210306173417.21528-1-ssbssa.ref@yahoo.de>
2021-03-06 17:33 ` [RFC] TUI windows for locals/display/threads/frames/memory Hannes Domani
2021-03-06 17:33   ` [PATCH 01/22] Initial TUI mouse support Hannes Domani
2021-03-11 17:32     ` Tom Tromey
2021-03-11 17:48       ` Hannes Domani
2021-03-12 16:35         ` Tom Tromey
2021-03-12 16:43           ` Hannes Domani
2021-03-12 17:02             ` Tom Tromey
2021-03-06 17:33   ` [PATCH 02/22] Create/disable/enable/delete breakpoints in TUI with mouse Hannes Domani
2021-03-08  9:32     ` Andrew Burgess
2021-03-08 12:00       ` Hannes Domani [this message]
2021-03-11 21:17         ` Tom Tromey
2021-03-11 21:16     ` Tom Tromey
2021-03-06 17:33   ` [PATCH 03/22] Forward mouse click to python TUI window Hannes Domani
2021-03-06 18:09     ` Eli Zaretskii
2021-03-08  9:36     ` Andrew Burgess
2021-03-11 21:19       ` Tom Tromey
2021-03-11 21:20     ` Tom Tromey
2021-03-06 17:33   ` [PATCH 04/22] Prevent flickering when redrawing the TUI python window Hannes Domani
2021-03-11 21:21     ` Tom Tromey
2021-03-06 17:34   ` [PATCH 05/22] Implement locals TUI window Hannes Domani
2021-03-08  9:51     ` Andrew Burgess
2021-03-11 21:26       ` Tom Tromey
2021-03-11 21:33     ` Tom Tromey
2021-03-11 22:00     ` Tom Tromey
2021-03-06 17:34   ` [PATCH 06/22] Implement display " Hannes Domani
2021-03-11 21:37     ` Tom Tromey
2021-03-06 17:34   ` [PATCH 07/22] Implement threads " Hannes Domani
2021-03-06 17:34   ` [PATCH 08/22] Implement frames " Hannes Domani
2021-03-11 21:40     ` Tom Tromey
2021-03-11 21:50       ` Hannes Domani
2021-03-06 17:34   ` [PATCH 09/22] Implement cccw TUI command Hannes Domani
2021-03-08 10:24     ` Christian Biesinger
2021-03-11 21:42       ` Tom Tromey
2021-03-11 21:57   ` [RFC] TUI windows for locals/display/threads/frames/memory Tom Tromey

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=1882367403.1043481.1615204808474@mail.yahoo.com \
    --to=ssbssa@yahoo.de \
    --cc=andrew.burgess@embecosm.com \
    --cc=gdb-patches@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).