This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GDB MI Interface


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 <Gordon.Prieur@sun.com> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]