From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28382 invoked by alias); 11 Aug 2010 13:03:55 -0000 Received: (qmail 28316 invoked by uid 22791); 11 Aug 2010 13:03:54 -0000 X-SWARE-Spam-Status: No, hits=0.0 required=5.0 tests=AWL,BAYES_00,RCVD_ILLEGAL_IP X-Spam-Check-By: sourceware.org Received: from imr4.ericy.com (HELO imr4.ericy.com) (198.24.6.8) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 11 Aug 2010 13:03:38 +0000 Received: from eusaamw0706.eamcs.ericsson.se ([147.117.20.31]) by imr4.ericy.com (8.14.3/8.14.3/Debian-9.1ubuntu1) with ESMTP id o7BD6E12025809 for ; Wed, 11 Aug 2010 08:06:23 -0500 Received: from EUSAACMS0703.eamcs.ericsson.se ([169.254.1.134]) by eusaamw0706.eamcs.ericsson.se ([147.117.20.31]) with mapi; Wed, 11 Aug 2010 09:03:33 -0400 From: Marc Khouzam To: "'gdb@sourceware.org'" Date: Wed, 11 Aug 2010 13:03:00 -0000 Subject: RE: Do we need MI -inferior-select Message-ID: References: In-Reply-To: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-08/txt/msg00062.txt.bz2 Sigh... Forget it, I believe I can use: -interpreter-exec --thread-group console I keep forgetting about this one. Sorry. Marc =20 > -----Original Message----- > From: gdb-owner@sourceware.org=20 > [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 >=20 > Hi, >=20 > 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. >=20 > Howver, I'm worried about CLI commands that don't have an MI=20 > 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'. >=20 > 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. >=20 > I'm ready to write a patch for -inferior-select, if it is agreed > that it is needed. >=20 > Thanks >=20 > Marc >=20 >=20=20 >=20 >=20=20 >=20