From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3182 invoked by alias); 22 Apr 2004 23:31:18 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 3172 invoked from network); 22 Apr 2004 23:31:16 -0000 Received: from unknown (HELO natnoddy.rzone.de) (81.169.145.166) by sources.redhat.com with SMTP; 22 Apr 2004 23:31:16 -0000 Received: from 0-091.vpn.rwth-aachen.de (0-091.vpn.RWTH-Aachen.DE [134.130.240.91]) by post.webmailer.de (8.12.10/8.12.10) with ESMTP id i3MNVFXe013361 for ; Fri, 23 Apr 2004 01:31:15 +0200 (MEST) From: Stefan Weyergraf To: gdb-patches@sources.redhat.com Subject: Re: [PATCH] implements MI "-file-list-exec-sections" (updated) Date: Thu, 22 Apr 2004 23:31:00 -0000 User-Agent: KMail/1.6.1 References: <200404222356.57808.stefan@weyergraf.de> <20040422112230.GA7237@white> In-Reply-To: <20040422112230.GA7237@white> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200404230131.26261.stefan@weyergraf.de> X-SW-Source: 2004-04/txt/msg00558.txt.bz2 > > Resubmitting updated (against current CVS) patch. Includes changes to > > GDB/MI and docs. No test case yet. > > Maybe it's worth mentioning, that GDB/CLI output for "info file" changes > > with this patch which will probably break programs that parse this. (I > > don't think such programs exist) The problem here is that: 1. I have converted the CLI output system for "info file" (*_files_info()) to use ui_out. The MI uses the same procedure (target_info()) to process "-file-list-exec-sections" (but a different ui_out instance) 2. "info file" deals with targets 3. targets have short (well machine readable) and long (well human readable, localizable???) names 4. all fields provided in MI output end up in CLI output (that's the way ui_out works) 5. it is desirable to have short names in MI output but short names are currently not part of the CLI output. > > I get the feeling that changing the CLI output of "info file" is a bad > idea. My hunch is that some front ends to GDB are calling that function. I don't think GDB development should be limited by keeping some CLI-standard output. And GDB/MI and not GDB/CLI was made for front-ends after all. In a perfect world... Stefan