This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Don't send queries to the MI interpreter
- From: Pedro Alves <palves at redhat dot com>
- To: Simon Marchi <simon dot marchi at ericsson dot com>, gdb-patches at sourceware dot org
- Date: Fri, 10 Feb 2017 16:48:42 +0000
- Subject: Re: [PATCH] Don't send queries to the MI interpreter
- Authentication-results: sourceware.org; auth=none
- References: <20170210163650.10334-1-simon.marchi@ericsson.com>
On 02/10/2017 04:36 PM, Simon Marchi wrote:
> We have a little problem in Eclipse CDT related to queries being sent on
> the MI channel. GDB sends queries on the MI stream and waits for an
> answer (y or n), but since CDT will never answer, it causes a deadlock.
>
> Note that this is only a problem when using MI as a side-channel
> (new-ui) on a dedicated tty. It doesn't happen if GDB's input/output
> streams are pipes, for example. In that case, the queries are
> auto-answered as they should.
I think we could have a testsuite test for this, as the 'new-ui'-related
testcases create a pty for the secondary MI channel ("separate-mi-tty")?
Thanks,
Pedro Alves