RE: Do we need MI -inferior-select

Marc Khouzam
2010-08-11T13:03:55Z

Sigh...
Forget it, I believe I can use:
-interpreter-exec --thread-group <groupId> console <cli command>

I keep forgetting about this one. Sorry.

Marc

> -----Original Message-----
> From: gdb-owner@sourceware.org
> [mailto:gdb-owner@sourceware.org] On Behalf Of Marc Khouzam
> Sent: Wednesday, August 11, 2010 8:59 AM
> To: 'gdb@sourceware.org'
> Subject: Do we need MI -inferior-select
>
> Hi,
>
> CLI has an 'inferior' command to switch to a different inferior.
> MI does not have such a command. Instead, if I understand correctly,
> MI provides a global --thread-group option that allows to specify
> the inferior, for each MI command. This is very nice.
>
> Howver, I'm worried about CLI commands that don't have an MI
> equivalent.
> How would I select the inferior for those commands?
> I don't have an actual example yet, but with 7.2 almost ready,
> I thought it was worth asking if we should add a new MI command
> for the CLI 'inferior'.
>
> Normally, I could simply use the CLI 'inferior' command if there
> is no MI equivalent, but I've noticed that the inferior ID used by
> CLI is not the same as the groupId used by MI. Therefore, to use
> 'inferior' the frontend would need to be able to map the groupId
> to a CLI inferiorId, which I'm not sure will necessarily be easy.
>
> I'm ready to write a patch for -inferior-select, if it is agreed
> that it is needed.
>
> Thanks
>
> Marc
>
>
>
>
>