From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29866 invoked by alias); 21 Jan 2003 16:15:02 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 29833 invoked from network); 21 Jan 2003 16:15:01 -0000 Received: from unknown (HELO localhost.redhat.com) (172.16.49.200) by 172.16.49.205 with SMTP; 21 Jan 2003 16:15:01 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id E67263D87; Tue, 21 Jan 2003 11:15:01 -0500 (EST) Message-ID: <3E2D7205.3080100@redhat.com> Date: Tue, 21 Jan 2003 16:15:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.1) Gecko/20021211 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jim Blandy Cc: gdb@sources.redhat.com Subject: Re: obsoleting the annotate level 2 interface References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-01/txt/msg00359.txt.bz2 > GDB seems to support two different ways of doing detailed annotations > of its output for consumption by other programs: MI and 'set annotate > 2'. I don't think annotation level 2 has many active users, if any at > all. It pervades GDB's code. Would it make sense to put 'set > annotate 2' on the path to obsolescence? Hmm, yes! Dead code elimination is always good. Removing the annotate stuff was always part of MI's long term agenda. > Some background: the 'set annotate' command sets the > 'annotation_level' variable. There are only three distinguished > values for this variable: Can you perhaps do a little more research into the history of this feature? For instance, was this initially part of some now abandoned project, or was this just `a good idea at the time'? What of the other potential clients (DDD, ...)? This helps strengthen the non-technical rationale for this user interface change. As for implementing this, the first step is pretty easy, just tweak "main.c" to print a warning when level 2 is selected. (Like the `deprecate mechanism we've got for commands'.) > Personally, I'd like to see Emacs switch from annotation level 1 to > MI, too; then we could get rid of annotation altogether. But I think > it makes sense to tackle level 2 first, since I don't think it has > many users (if any). Yes. RMS has previously inidicated his liking of the idea of having EMACS use MI. The lack of a console was identified as a technical barrier to that change :-/ Andrew