public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: Phi Debian <phi.debian@gmail.com>
Cc: gdb-patches@sourceware.org
Subject: Re: TUI enhancement suggestion.
Date: Thu, 11 Jun 2020 11:34:37 +0100	[thread overview]
Message-ID: <38b5d874-cdf2-50e7-dc76-aed3fee20334@redhat.com> (raw)
In-Reply-To: <CAJOr74hae0-qguChBQvbfk5qk_Lc_C_FgO-RYA5ADL4xPQ6JZQ@mail.gmail.com>

On 6/9/20 4:03 PM, Phi Debian via Gdb-patches wrote:
> Here is the patch I made, I spotted a little typo in a comment, I leave it
> in there for now, and provide this as a demonstrator.
> 

Cool, thanks.  Patches should be sent against current master, because
new features are not going to be merged to the gdb 9 branch, only bugfixes.

> I never submitted a patch so I don't really know the best practice, I
> cutted it on top of 9.2 (latest pull) then the patch)
> I used
> 
> $ git format-patch -1 HEAD
> 

That's good.  The best way to send a patch is to then use 
  git send-email 0001-whatever.patch
but attaching it as you've done is also OK.

Take a look here:

  https://sourceware.org/gdb/wiki/ContributionChecklist

We will need to clear the copyright assignment issue:
  https://sourceware.org/gdb/wiki/ContributionChecklist#FSF_copyright_Assignment
in order to be able to accept your contribution.  Let me know and
I'll get your started.

As for the patch itself, how about, instead of:

  set tui point-underline on|off

we make it an enum command like:

  set tui current-line-highlight none|reverse|underline

An enum like this leaves it open for other styles in the future.
"none" could be to just display the ">" on the left side
and nothing else, like currently still done on the assembly
window.  

Also, I'm suggesting

  set tui current-line-highlight

and not

  set tui current-source-line-highlight

because it seems like a bug to me that the assembly window
doesn't highlight the current instruction in the same fashion
as the current source window highlight the current source line.

In your screenshot, the underline only goes up until the "printf",
instead of underlining the actual source code text in the line as well.
That seems like a bug.  What happens if you disable styling, with
"set style enabled off"?  Does that cause the whole text line to
be underlined?

Thanks,
Pedro Alves


  reply	other threads:[~2020-06-11 10:34 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-09  7:55 Phi Debian
2020-06-09 13:04 ` Pedro Alves
2020-06-09 14:32   ` Phi Debian
2020-06-09 15:03     ` Phi Debian
2020-06-11 10:34       ` Pedro Alves [this message]
2020-06-11 13:55         ` Phi Debian
2020-06-15 14:20           ` Pedro Alves
2020-06-15 15:48             ` Hannes Domani
2020-06-15 16:56               ` Phi Debian
2020-06-15 19:30                 ` Pedro Alves
2020-06-15 19:47                   ` Phi Debian
2020-06-15 20:12                   ` Tom Tromey
2020-06-15 20:45                     ` Pedro Alves
2020-06-16  3:38                       ` Phi Debian
2020-06-16 11:02                         ` [PATCH] Add "set style tui-current-position on|off" default to off Pedro Alves
2020-06-16 14:33                           ` Eli Zaretskii
2022-11-15 10:09                           ` Andrew Burgess
2022-11-15 12:15                             ` Pedro Alves
2022-11-16 10:41                               ` Andrew Burgess
2022-11-17  6:30                                 ` Phi Debian
     [not found]   ` <CAJOr74jg==A7NM4qtWEq6neXqxpxxtUEVdDgsahfvRobW+Q0wA@mail.gmail.com>
     [not found]     ` <CAJOr74hQdi6Y4MpGy=J-3CTRA2PP08OebTO2hBFN5NyDRokb3Q@mail.gmail.com>
     [not found]       ` <CAJOr74gyyw4hJm9j0fzKQdzkJKzq=yiAXyZx_c2Q=RA8GTSN7Q@mail.gmail.com>
     [not found]         ` <ed9ea9c6-3d4d-6ba7-4672-bff2b2617012@redhat.com>
2020-06-10 20:25           ` TUI enhancement suggestion Phi Debian
2020-06-11 10:17             ` Pedro Alves

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=38b5d874-cdf2-50e7-dc76-aed3fee20334@redhat.com \
    --to=palves@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=phi.debian@gmail.com \
    /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).