Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH 0/3] Improve the add-inferior completer
@ 2021-02-13 22:07 Lancelot SIX via Gdb-patches
  2021-02-13 22:07 ` [PATCH 1/3] gdb::option: Add support for filename option Lancelot SIX via Gdb-patches
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Lancelot SIX via Gdb-patches @ 2021-02-13 22:07 UTC (permalink / raw)
  To: gdb-patches; +Cc: Lancelot SIX

This patch series aims at providing a proper completer for the
add-inferior command based on the gdb::option framework.

The first two commits add support for new option types (zuinteger and
filename) and the third implements the completer.

The filename completer is based on the one already in gdb/completer.c,
but has different behavior when it comes to handling space and quotation
characters in file names.  For the time being, I propose an independent
completer for the gdb::option framework, but if the proposed behavior is
desired for ::file_completer, I’d be happy to merge them.  I am just
unsure whether there are commands that expect to parse file names as
completed by the current completer (I do not think so).

I also have many warnings by dejagnu because test names contain file
names.  This adds quite noise but it seems inevitable given how the test
names are generated. Is this an issue?

All feedback are welcome and will be appreciated.

Lancelot SIX (3):
  gdb::option: Add support for filename option.
  gdb::option: Add support for zuinteger.
  Add completer to the add-inferior command

 gdb/cli/cli-option.c                     | 277 +++++++++++++++++++++++
 gdb/cli/cli-option.h                     |  41 ++++
 gdb/completer.c                          |   3 +
 gdb/completer.h                          |  15 ++
 gdb/inferior.c                           | 123 ++++++----
 gdb/maint-test-options.c                 |  27 ++-
 gdb/testsuite/gdb.base/completion.exp    |  11 +
 gdb/testsuite/gdb.base/options.exp       | 190 +++++++++++++---
 gdb/testsuite/lib/completion-support.exp |   1 -
 9 files changed, 613 insertions(+), 75 deletions(-)

-- 
2.29.2


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-02-17 10:20 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-13 22:07 [PATCH 0/3] Improve the add-inferior completer Lancelot SIX via Gdb-patches
2021-02-13 22:07 ` [PATCH 1/3] gdb::option: Add support for filename option Lancelot SIX via Gdb-patches
2021-02-16 17:45   ` Andrew Burgess
2021-02-16 18:52     ` Lancelot SIX via Gdb-patches
2021-02-17 10:20       ` Andrew Burgess
2021-02-13 22:07 ` [PATCH 2/3] gdb::option: Add support for zuinteger Lancelot SIX via Gdb-patches
2021-02-13 22:07 ` [PATCH 3/3] Add completer to the add-inferior command Lancelot SIX via Gdb-patches
2021-02-16 17:04   ` Andrew Burgess
2021-02-16 18:10     ` Lancelot SIX via Gdb-patches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox