From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1898 invoked by alias); 11 Aug 2010 12:59:12 -0000 Received: (qmail 1885 invoked by uid 22791); 11 Aug 2010 12:59:11 -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 12:59:06 +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 o7BD1nMM025359 for ; Wed, 11 Aug 2010 08:01:51 -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 08:59:03 -0400 From: Marc Khouzam To: "'gdb@sourceware.org'" Date: Wed, 11 Aug 2010 12:59:00 -0000 Subject: Do we need MI -inferior-select Message-ID: 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/msg00061.txt.bz2 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 =20 =20