This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v2 00/25] Towards great frontend GDB consoles
- From: Pedro Alves <palves at redhat dot com>
- To: Marc Khouzam <marc dot khouzam at ericsson dot com>, "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Mon, 21 Mar 2016 19:12:33 +0000
- Subject: Re: [PATCH v2 00/25] Towards great frontend GDB consoles
- Authentication-results: sourceware.org; auth=none
- References: <1458573675-15478-1-git-send-email-palves at redhat dot com> <E59706EF8DB1D147B15BECA3322E4BDC22A06EF9 at eusaamb103 dot ericsson dot se> <56F042BF dot 7000700 at redhat dot com> <E59706EF8DB1D147B15BECA3322E4BDC22A06FCB at eusaamb103 dot ericsson dot se>
On 03/21/2016 07:06 PM, Marc Khouzam wrote:
>> From: Pedro Alves [palves@redhat.com]
>>> 2- Using 'interpreter-exec mi" in the CLI console confuses GDB
>>> To reproduce from a shell
>>> - start GDB in CLI mode
>>> - give a "new-ui mi" command to start an MI channel
>>> - start running the inferior => *stopped/*running events are on the MI channel
>>> - in the CLI send command interpreter-exec mi ""
>>> - step or resume
>>> => *stopped/*running events are now on the CLI channel and not the MI one
>>
>> I can reproduce this.
>>
>> This may be related to the fact that MI's code still has a bunch of
>> globals that I hadn't made per-UI, thinking that that would be sufficient
>> for the use case at hand. While annoying, I wouldn't expect a
>> regular user / script to be issuing MI commands, right?
>
> Yes, I guess I'm one of the rare people that use interpreter-exe mi :)
:-)
> So, making this work is not urgent at all. But I am a little worried that
> if the user does issue such a command, the eclipse session stops
> working (as it misses the MI events).
Indeed.
> Would it be hard to disable
> the problematic command when 'new-ui' has been used?
Hmm, probably not. I don't know yet whether it'd be hard to
fix properly, but I'll take a look first before taking that route.
Thanks,
Pedro Alves