From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14732 invoked by alias); 30 Jan 2013 16:27:29 -0000 Received: (qmail 14708 invoked by uid 22791); 30 Jan 2013 16:27:25 -0000 X-SWARE-Spam-Status: No, hits=-4.1 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL X-Spam-Check-By: sourceware.org Received: from usevmg21.ericsson.net (HELO usevmg21.ericsson.net) (198.24.6.65) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 30 Jan 2013 16:27:16 +0000 Received: from EUSAAHC002.ericsson.se (Unknown_Domain [147.117.188.78]) by usevmg21.ericsson.net (Symantec Mail Security) with SMTP id 7C.FE.03705.3E949015; Wed, 30 Jan 2013 17:27:15 +0100 (CET) Received: from EUSAAMB103.ericsson.se ([147.117.188.120]) by EUSAAHC002.ericsson.se ([147.117.188.78]) with mapi id 14.02.0318.004; Wed, 30 Jan 2013 11:27:15 -0500 From: Marc Khouzam To: =?iso-8859-1?Q?=27Andr=E9_P=F6nitz=27?= CC: 'Mircea Gherzan' , "'tromey@redhat.com'" , "'vladimir@codesourcery.com'" , "'gdb-patches@sourceware.org'" Subject: RE: [RFC] Fix the MI result of -break-insert with multiple locations Date: Wed, 30 Jan 2013 16:27:00 -0000 Message-ID: References: <1359470164-32004-1-git-send-email-mircea.gherzan@intel.com> <20130129194520.GA3727@klara.mpi.htwm.de> <20130129221333.GA5941@klara.mpi.htwm.de> In-Reply-To: <20130129221333.GA5941@klara.mpi.htwm.de> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2013-01/txt/msg00715.txt.bz2 > -----Original Message----- > From: apoe@hrz.tu-chemnitz.de=20 > [mailto:apoe@hrz.tu-chemnitz.de] On Behalf Of Andr=E9 P=F6nitz > Sent: Tuesday, January 29, 2013 5:14 PM > To: Marc Khouzam > Cc: 'Mircea Gherzan'; 'tromey@redhat.com';=20 > 'vladimir@codesourcery.com'; 'gdb-patches@sourceware.org' > Subject: Re: [RFC] Fix the MI result of -break-insert with=20 > multiple locations >=20 > On Tue, Jan 29, 2013 at 08:42:39PM +0000, Marc Khouzam wrote: > > > This seems more like an additional burden for frontends=20 > which cannot > > > rely on a specific gdb version being installed as they=20 > have to keep > > > code to parse both results, for years. > >=20 > > Although that is a good point, keeping it forces frontends to deal > > with that case. >=20 > I don't think it needs special "dealing" as I assume that existing=20 > frontend parsers are just robust enough to accept such cases. I don't believe eclipse can handle the current output as it stands, not in the reply to -break-insert at least. The code expects a single breakpoint tuple, so we'll need to change things either way. I'm not saying that is a good enough reason to change the output :) I'm just mentioning that some frontends can't handle this already. > Changing the nesting of structures on the other hand usually > needs adjustment to the interpretation of the parsed structure. >=20 > I am not scared of adding yet another ten lines to find out which > kind of output the user's choice of GDB produces and to handle > both versions, I just find it not particular convenient.=20 >=20 > Andre' >=20 > PS: This point remains: >=20 > > > An alternative approach would be to just make the > > > documentation match the actual output. This is not > > > unprecedented. >=20 > PPS: In theory "-list-features" could be used to announce output > changes to avoid the "guessing" phase. >=20 >=20