From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26120 invoked by alias); 13 Apr 2008 21:41:48 -0000 Received: (qmail 26108 invoked by uid 22791); 13 Apr 2008 21:41:47 -0000 X-Spam-Check-By: sourceware.org Received: from rv-out-0708.google.com (HELO rv-out-0506.google.com) (209.85.198.249) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 13 Apr 2008 21:41:14 +0000 Received: by rv-out-0506.google.com with SMTP id b17so452811rvf.48 for ; Sun, 13 Apr 2008 14:41:10 -0700 (PDT) Received: by 10.140.142.4 with SMTP id p4mr2941175rvd.261.1208122870891; Sun, 13 Apr 2008 14:41:10 -0700 (PDT) Received: by 10.141.153.20 with HTTP; Sun, 13 Apr 2008 14:41:10 -0700 (PDT) Message-ID: Date: Mon, 14 Apr 2008 02:18:00 -0000 From: "Lokesh Kumar" To: "Gordon Prieur" Subject: Re: GDB MI Interface Cc: gdb@sourceware.org In-Reply-To: <47FF7ECA.4090104@sun.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47FF7ECA.4090104@sun.com> 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-04/txt/msg00110.txt.bz2 Hi, I think I found what I was looking for. Sharing it here for others as well. On Fri, Apr 11, 2008 at 8:07 AM, Gordon Prieur wrote: > > Lokesh Kumar wrote: > > > Hi all, > > > > I want to use the GDB MI interface to communicate with gdb in the > > backend of my software. Surprisingly, the current information on this > > topic is very less on the web. So I thought of turning to the gdb > > community itself. I had the following questions to ask - > > > > 1. Does the parser for MI output already exists ? > > > > > > No. You need to write your own. http://sourceforge.net/projects/libmigdb/ This library provides all the function that one may need to start gdb, interact with it (seeting breakpoints, watchpoints, run, stop, step etc.) and parse the output. A good tool for someone planning to use GDB MI. > > > > > > 2. Are there some frontends debugger that are using this ? As far as I > > know, the ddd and kdb both use the CLI option. > > > > > > The NetBeans C/C++ gdb module uses gdb/mi. > > > > > > 3. Has there been any documentation on how to use gdb-MI. The current > > documentation is, as they say, like a reference manual. > > > > > > Chapter 25 of the gdb manual > (http://sourceware.org/gdb/current/onlinedocs/gdb_25.html) > describes the interface. > > Gordon > > > > Thanks in advance, > > > > -Lokesh > > > > > > > -- "Doubt is not a pleasant condition, but certainty is absurd." Lokesh Kumar Mobile: +1 917 319 0360