This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 0/2] Command completion for 'layout' command.
- From: Andrew Burgess <andrew dot burgess at embecosm dot com>
- To: gdb-patches at sourceware dot org
- Cc: Andrew Burgess <andrew dot burgess at embecosm dot com>
- Date: Tue, 7 Apr 2015 09:08:53 +0100
- Subject: [PATCH 0/2] Command completion for 'layout' command.
- Authentication-results: sourceware.org; auth=none
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