From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24728 invoked by alias); 16 Feb 2006 15:56:14 -0000 Received: (qmail 24717 invoked by uid 22791); 16 Feb 2006 15:56:12 -0000 X-Spam-Check-By: sourceware.org Received: from eastrmmtao04.cox.net (HELO eastrmmtao04.cox.net) (68.230.240.35) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 16 Feb 2006 15:56:09 +0000 Received: from localhost.localdomain ([68.9.66.48]) by eastrmmtao04.cox.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20060216155608.EVJU19943.eastrmmtao04.cox.net@localhost.localdomain>; Thu, 16 Feb 2006 10:56:08 -0500 Received: from bob by localhost.localdomain with local (Exim 4.52) id 1F9lUE-0003U8-EW; Thu, 16 Feb 2006 10:56:06 -0500 Date: Thu, 16 Feb 2006 15:56:00 -0000 From: Bob Rossi To: Vladimir Prus Cc: gdb@sources.redhat.com Subject: Re: MI -thread-list-ids output issue Message-ID: <20060216155606.GA11681@brasko.net> Mail-Followup-To: Vladimir Prus , gdb@sources.redhat.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-02/txt/msg00160.txt.bz2 On Thu, Feb 16, 2006 at 06:48:01PM +0300, Vladimir Prus wrote: > > Hello! > > At the moment, the response to -thread-list-ids looks like this: > > ^done,thread-ids={thread-id="3",thread-id="2",thread-id="1"}, > > > The grammar says that {} is a tuple, but not that all fields in the tuple > have the same name, so it can be only indexed by integer. While this is > allowed by the grammar, it's pretty inconvenient. > > Essentially this will require me to add, in MI parser I use, special > operation "treat this as list, even though it looks like a tuple", which is > pretty nasty. > > Maybe, it's still possible to change this output to be: > > ^done,thread-ids=["3","2","1"] > > Or, if changing the existing output is deemed impossible even in this case, > what about: > > ^done,threads=["3", "2", "1"], > thread-ids={thread-id="3",thread-id="2",thread-id="1"}, Do you have a small C example I can use to generate this output with GDB? I would like to use the parser i have written to see if I have the same problem you have. Also, you wouldn't be able to change the output of MI in a non-backwards compatible way unless a new major version of MI is released. Also, even then, it's probably a bad idea. Bob Rossi