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]

Re: [PATCH] Add tab completion for TUI's "focus" command


On Tue, Jun 23, 2015 at 10:29 AM, Patrick Palka <patrick@parcs.ath.cx> wrote:
> The implementation is pretty straightforward, with the only caveat being
> that the "src", "cmd", "next" and "prev" entries get delibrately added
> to the completion list even when the TUI has not yet been initialized
> (i.e. has never been enabled during the session), since invoking the
> "focus" command with these arguments already works when the TUI has not
> yet been initialized.
>
> gdb/ChangeLog:
>
>         * tui/tui-win.c (focus_completer): New static function.
>         (_initialize_tui_win): Set the completion function of the
>         "focus" command to focus_completer.
>
> gdb/testsuite/ChangeLog:
>
>         * gdb.base/completion.exp: Test the completion of the "focus"
>         command.

LGTM


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