* Do we need MI -inferior-select
@ 2010-08-11 12:59 Marc Khouzam
2010-08-11 13:03 ` Marc Khouzam
0 siblings, 1 reply; 2+ messages in thread
From: Marc Khouzam @ 2010-08-11 12:59 UTC (permalink / raw)
To: 'gdb@sourceware.org'
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: Do we need MI -inferior-select
2010-08-11 12:59 Do we need MI -inferior-select Marc Khouzam
@ 2010-08-11 13:03 ` Marc Khouzam
0 siblings, 0 replies; 2+ messages in thread
From: Marc Khouzam @ 2010-08-11 13:03 UTC (permalink / raw)
To: 'gdb@sourceware.org'
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
>
>
>
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-08-11 13:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-11 12:59 Do we need MI -inferior-select Marc Khouzam
2010-08-11 13:03 ` Marc Khouzam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox