This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 0/2] Command completion for 'layout' command.


These patches are an attempt to add command completion to the "layout"
command, completing the possible layout names.

This is made slightly harder as some of the layout names include the
'$' character, which usually counts as a word break character.

The first patch just adds some extra infrastructure to the testsuite
library to make testing the second patch easier.

The second patch adds the command completion.  The '$' issue makes the
patch messier that I'd hoped, I'd be happy to take suggestions on
possible improvements.

Thanks,
Andrew

---

Andrew Burgess (2):
  gdb/testsuite: New skip_tui_tests predicate.
  gdb: Add completer for layout command.

 gdb/ChangeLog                         | 13 +++++++++
 gdb/completer.c                       | 18 +++++++++---
 gdb/completer.h                       |  4 +++
 gdb/testsuite/ChangeLog               | 10 +++++++
 gdb/testsuite/gdb.base/completion.exp | 18 ++++++++++++
 gdb/testsuite/gdb.base/tui-layout.exp |  7 +++++
 gdb/testsuite/lib/gdb.exp             | 15 ++++++++++
 gdb/tui/tui-layout.c                  | 53 +++++++++++++++++++++++++++++++++--
 8 files changed, 132 insertions(+), 6 deletions(-)

-- 
2.2.2


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]