This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [pushed] MI: Add new command -complete
- From: Tom de Vries <tdevries at suse dot de>
- To: Jan Vrany <jan dot vrany at fit dot cvut dot cz>, gdb-patches at sourceware dot org
- Date: Fri, 21 Jun 2019 08:54:27 +0200
- Subject: Re: [pushed] MI: Add new command -complete
- References: <20190517102420.24884-1-jan.vrany@fit.cvut.cz> <20190517102420.24884-2-jan.vrany@fit.cvut.cz>
On 17-05-19 12:24, Jan Vrany wrote:
> There is a CLI command 'complete' intended to use with emacs. Such a command
> would also be useful for MI frontends, when separate CLI and MI channels cannot
> be used. For example, on Windows (because of lack of PTYs) or when GDB is used
> through SSH session.
>
> This commit adds a new '-complete' MI command.
>
> gdb/Changelog:
> 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
>
> * mi/mi-cmds.h (mi_cmd_complete): New function.
> * mi/mi-main.c (mi_cmd_complete): Likewise.
> * mi/mi-cmds.c: Define new MI command -complete.
> * NEWS: Mention new -complete command.
>
> gdb/doc/ChangeLog:
> 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
>
> * gdb.texinfo (Miscellaneous GDB/MI Commands): Document new
> MI command -complete.
>
> gdb/testsuite/ChangeLog:
> 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
>
> * gdb.mi/mi-complete.exp: New file.
> * gdb.mi/mi-complete.cc: Likewise.
This test partially fails for me, I've filed
PR24711 - "FAIL: gdb.mi/mi-complete.exp: -complete br, max-completions
1/0 (unexpected output)" (
https://sourceware.org/bugzilla/show_bug.cgi?id=24711 ).
Thanks,
- Tom