Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: Tom Tromey <tom@tromey.com>, Jan Vrany <jan.vrany@fit.cvut.cz>
Cc: gdb-patches@sourceware.org, "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: [PATCH v2 0/2] MI: Add new command -complete
Date: Wed, 27 Feb 2019 20:41:00 -0000	[thread overview]
Message-ID: <f4bd9fd7-ff54-3ac2-e6e3-30a67e0233d8@redhat.com> (raw)
In-Reply-To: <87mumie3e2.fsf@tromey.com>

I'm totally not against this new command at all, but I have to say that I'd be
much more thrilled if someone just spent the time to make separate CLI/MI
channels work on Windows too.  The channel doesn't _have_ to be a PTY.

On 02/26/2019 07:49 PM, Tom Tromey wrote:
>>>>>> "Jan" == Jan Vrany <jan.vrany@fit.cvut.cz> writes:
> 
> Jan> Are there any other GDB/MI users to comment on this? What would you
> Jan> prefer?
> 
> Given the lack of response, I think you should just say which you
> prefer.  If you think it would be better the "other" way, go for it.
> Or if you'd rather the patches you already have, let me know.

Jan, please consider the wildmatching case.  E.g., when debugging GDB itself:

(gdb) b push_bac<TAB>
Display all 102 possibilities? (y or n)
debug_names::offset_vec_tmpl<unsigned int>::push_back_reorder(unsigned long)
debug_names::offset_vec_tmpl<unsigned long>::push_back_reorder(unsigned long)
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::push_back(char)
...

The frontend needs to complete "b push_bac" -> "b push_back", and present
the matches.

But the least common denominator is not at the start of the matches
strings.  How will a frontend compute the LCD from the matches list alone?

Please mind the "2018" copyright year in the testcase.

Thanks,
Pedro Alves


  parent reply	other threads:[~2019-02-27 20:41 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87imynm3ia.fsf@tromey.com>
     [not found] ` <20190128124101.26243-1-jan.vrany@fit.cvut.cz>
     [not found]   ` <87pnrmnolt.fsf@tromey.com>
2019-02-21 16:05     ` Jan Vrany
2019-02-26 19:49       ` Tom Tromey
2019-02-27 10:41         ` Jan Vrany
2019-02-27 20:41         ` Pedro Alves [this message]
2019-02-28 10:18           ` Jan Vrany
     [not found]             ` <b4f7d9f8-3b11-0050-8be0-1388cf37b113@redhat.com>
2019-03-06 15:09               ` Jan Vrany
2019-03-06 15:45                 ` Eli Zaretskii
2019-03-06 16:37                   ` Jan Vrany
2019-03-06 17:36                     ` Eli Zaretskii
2019-03-11  8:46                       ` Readline on Windows (WAS: Re: [PATCH v2 0/2] MI: Add new command -complete] Jan Vrany
2019-03-11 14:43                         ` Eli Zaretskii
2019-03-12 11:43                           ` Jan Vrany

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=f4bd9fd7-ff54-3ac2-e6e3-30a67e0233d8@redhat.com \
    --to=palves@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=gdb@sourceware.org \
    --cc=jan.vrany@fit.cvut.cz \
    --cc=tom@tromey.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