Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* 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

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