From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12705 invoked by alias); 23 Apr 2003 14:51:33 -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 12698 invoked from network); 23 Apr 2003 14:51:31 -0000 Received: from unknown (HELO hub.ott.qnx.com) (209.226.137.76) by sources.redhat.com with SMTP; 23 Apr 2003 14:51:31 -0000 Received: from smtp.ott.qnx.com (smtp.ott.qnx.com [10.0.2.158]) by hub.ott.qnx.com (8.9.3p2/8.9.3) with ESMTP id KAA05077 for ; Wed, 23 Apr 2003 10:50:01 -0400 Received: from node1.ott.qnx.com (hwlab1 [10.0.2.159]) by smtp.ott.qnx.com (8.8.8/8.6.12) with ESMTP id KAA24611 for ; Wed, 23 Apr 2003 10:51:30 -0400 Received: (from alain@localhost) by node1.ott.qnx.com (8.8.8/8.6.12) id KAA31295 for gdb@sources.redhat.com; Wed, 23 Apr 2003 10:51:31 -0400 Message-Id: <200304231451.KAA31295@node1.ott.qnx.com> Subject: Re: gdb/mi or annotations detection To: bob_rossi@cox.net (Bob Rossi) Date: Wed, 23 Apr 2003 14:51:00 -0000 From: "Alain Magloire" Cc: gdb@sources.redhat.com In-Reply-To: <20030423111030.GA14799@white> from "Bob Rossi" at Apr 23, 2003 07:10:30 AM MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2003-04/txt/msg00267.txt.bz2 > > Hi, > > How is the front end supposed to detect whether or not it should use > annotations or GDB/MI? I think there needs to be a way of doing this > besides starting it once for detection/failure for MI, and then starting > it again for annotations. > > Also, what about different versions of MI. As it progresses different > versions will have different functionality. How will the front end know > what functionality each version has? > I hear you loud and clear. Eclipse/CDT, a debugger using heavily GDB/MI, is plague with hacks trying to be compatible with all MI version. This is probably not a problem with debuggers like insight, since they are tied with a gdb version. I thought, I had a PR on this, wait ... mi/1186 > ex. > In the first release of MI there might not be the > -symbol-info-linetable command. So, the front end will have to give > commands 'info line' over and over. Then, when this command becomes > available in the next release, the front end can start using it > instead. > > The front end can not do a 'gdb --version' because usually there are > gdb's installed that are cvs snapshots ( debian ). > "gdb --version", generates all sort of things depending on the platform, the distrubution, etc .. not reliable > Does anyone have any ideas? > -mi-level ? 8-) bye,