From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28314 invoked by alias); 1 Aug 2008 23:34:19 -0000 Received: (qmail 28303 invoked by uid 22791); 1 Aug 2008 23:34:19 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.25) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 01 Aug 2008 23:33:52 +0000 Received: from kahikatea.snap.net.nz (86.30.255.123.static.snap.net.nz [123.255.30.86]) by viper.snap.net.nz (Postfix) with ESMTP id BBAC73DA708; Sat, 2 Aug 2008 11:33:48 +1200 (NZST) Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 94F068FC6D; Sat, 2 Aug 2008 11:33:46 +1200 (NZST) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18579.40281.652068.445410@kahikatea.snap.net.nz> Date: Fri, 01 Aug 2008 23:34:00 -0000 To: Pankaj Pal Cc: gdb@sources.redhat.com Subject: Re: Query regarding GDB-Mi interface In-Reply-To: <488FF89A.3020609@mentor.com> References: <488FE9AF.5060008@mentor.com> <488FF89A.3020609@mentor.com> X-Mailer: VM 7.19 under Emacs 22.2.50.3 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-08/txt/msg00034.txt.bz2 > We have a debugging front end which uses gdb-6.6 We were using > annotations till now but > as annotations have been made obsolete we are shifting to MI > interpreter. I have a few queries regarding MI. > > 1) Why few commands are still un implemented like attach, info program > etc. Is there any plan to support them. I think the plan is only to implement commands as they are needed. Probably many of the commands listed in the MI section don't need to be implemented. > 2) Is there any way to stop the MI interpreter like we have with > annotations (set annotate 0 whenever we wish to do so). No. Annotations just markup the output and are easy to turn off. MI uses a different interpreter, which is a more fundamental change and allows a different set of input commands. Apple GDB, however, does allow switching of interpreters, e.g MI to CLI (normal output) and it may be useful for FSF GDB to do this too. > 3) We need 'info line *addr' command when we are shifting to MI from > annotations. I have been doing few changes in > the gdb source code to get this information (source file and line > number), however annotations have this information. > I would like to know is there any known issue due to which this > command has not been implemented. MI will accept CLI commands but you need to parse the output, e.g., info line &"info line\n" ~"Line 146 of \"myprog.c\" starts at address 0x80486e9
\n" ~" and ends at 0x8048706 .\n" ^done (gdb) However, it doen't print the annotation that "info line" generates with annotations if you need that. -- Nick http://www.inet.net.nz/~nickrob