[PATCH 0/5] pipe command completer, and string options

Pedro Alves palves@redhat.com
Thu Jun 27 19:14:00 GMT 2019


Tromey noticed that the "pipe" command doesn't have a completer.
Initially I said I wasn't planning on looking at it, thinking that all
the building blocks were already in place.  But I quickly realized
that there's one piece missing -- string options...  So I took a stab
at implementing it.  Of course, lucky me, I ran into other issues and
latent bugs, now all addressed...

Pedro Alves (5):
  Fix test_gdb_complete_tab_multiple race
  Make gdb::option::complete_options save processed arguments too
  Teach gdb::option about string options
  Fix latent bug in test_gdb_complete_cmd_multiple
  pipe command completer

 gdb/cli/cli-cmds.c                       |  92 +++++++++++++--
 gdb/cli/cli-option.c                     | 157 ++++++++++++++++++++-----
 gdb/cli/cli-option.h                     |  21 ++++
 gdb/cli/cli-utils.c                      |   7 +-
 gdb/maint-test-options.c                 | 134 ++++++++++++++--------
 gdb/testsuite/gdb.base/options.exp       | 190 +++++++++++++++++++++++--------
 gdb/testsuite/gdb.base/shell.exp         |  47 +++++++-
 gdb/testsuite/lib/completion-support.exp |  11 +-
 8 files changed, 522 insertions(+), 137 deletions(-)

-- 
2.14.5



More information about the Gdb-patches mailing list