From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27435 invoked by alias); 18 Mar 2003 20:17:33 -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 27188 invoked from network); 18 Mar 2003 20:17:30 -0000 Received: from unknown (HELO white) (68.14.146.65) by sources.redhat.com with SMTP; 18 Mar 2003 20:17:30 -0000 Received: from bob by white with local (Exim 3.35 #1 (Debian)) id 18vNWZ-00034C-00; Tue, 18 Mar 2003 15:17:27 -0500 Date: Tue, 18 Mar 2003 20:17:00 -0000 From: Bob Rossi To: Andrew Cagney Cc: Nick Roberts , gdb-patches@sources.redhat.com Subject: Re: [rfc] Annotation level THREE Message-ID: <20030318201727.GA11746@white> Mail-Followup-To: Andrew Cagney , Nick Roberts , gdb-patches@sources.redhat.com References: <3E6E7326.3020906@redhat.com> <15985.7336.23998.590592@nick.uklinux.net> <3E751565.4030409@redhat.com> <15990.10811.61395.996906@nick.uklinux.net> <3E763228.9060104@redhat.com> <15990.62618.114706.459904@nick.uklinux.net> <3E774292.8070603@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3E774292.8070603@redhat.com> User-Agent: Mutt/1.3.28i X-SW-Source: 2003-03/txt/msg00413.txt.bz2 On Tue, Mar 18, 2003 at 11:00:18AM -0500, Andrew Cagney wrote: > >>> > The above list also contains thing like field-{begin,end}, > > > > > array-section-{begin,end} et.al. Why are they needed. > > > > > > > > I use them to parse the output. They could probably go, if > > necessary, but > > > > others that you plan to take out *are* needed. > > > > > > Can you please be more specific? > > > >Perhaps I could turn that question round. Which annotations are you > >planning > >to keep? > > I think annotations can be split into two categores: > > - events > These let GDB notify the GUI of internal state changes. > > - markups > These try to make CLI output, intended solely for a human, machine > parsable. > > The events remain (target changed, breakpoint created, ....). The > markups are removed (*-{begin,end}) > > Andrew > Here is my humble opinion. I do see a problem with annotate level 3. I don't understand why GDB should introduce another level of complexity to the annotation problem. ( The problem being the switch from annotation to mi ). It doesn't really make sense to me that several releases of GDB will support an annotation level of 3.I think it would be great if annotations were deprecated after MI was fully ready to take its place. If MI is "ready" to replace annotations, then it should. I don't see how removing several annotations really saves the GDB developers anything. I think the proof that MI is ready is to see at least one console implementation of a front end to GDB. I don't expect to see proof. I do however wonder what kind of a mess we will be in if front ends can not make a console implementation complete with a certain version of GDB because of some lack of support in MI. To stack problems on top of that, the front end will be using a combination of annotation/MI commands which to me seems to complicated. After all, this is a simple problem, and we are smart people :). 1. In the future all front ends will have to put up with supporting the possibility of having annotation level 3. This seems like it would be a more complex way to determine problems with the front end. 2. Front ends will at some point a. use only annotations to communicate with GDB. b. use a hybrid of annotations / MI to communicate with GDB. c. use only MI to communicate with GDB. This seems to be an overly complex way to transition between the two. It seems as if annotations should stay until MI is ready to be used to replace all of the annotations. Why would we want to place part (b) on front ends. That penalty has an order of magnitude of N for front ends that will use annotate level 2 to communicate with GDB. This is a clear violation of the DRY principle. 3. Someone like me will start to write a front end and say "Hey, annotation level 3 is cool, I will use it to write a front end to GDB". Then we will have another problem. :) Bob Rossi