GDB/MI (Was: Embedded development)

Vladimir Prus ghost at cs.msu.su
Wed Sep 14 09:36:04 UTC 2005


On Wednesday 14 September 2005 11:25, jbb wrote:
> On Wednesday 14 September 2005 05:07, Alexander Dymo wrote:
> > On Tuesday 13 September 2005 11:36, Roberto Raggi wrote:
> > > A couple of years ago I wrote a simple GDB/MI analyzer and Alexander
> > > implemented a simple debugger with it. Unfortunatly he deleted the
> > > Debugger :-)
> >
> > Yeah, I suck a lot :)
> >
> > > maybe we can use this experience to re*design/develop* it
> > > Alexander?, Vladimir? John? :-)
> >
> > I did it once, I can do it again. I can write a simple mi implementation
> > again for KDevelop4. Unfortunately, I will not do that in September, I
> > have too much work :( (only 3 working days at university, but all other
> > days are spent to prepare for lectures/etc.)
>
> Perhaps MI's time has finally come. The parser should be easier than our
> current one but I'm not sure it supports all the commands we need. But is
> there an MI wrapper for CLI commands?

What do you mean? Is it possible to send CLI commands in MI mode? Yes, just 
writing them will work. And for experiments with MI, we can use

   interpreter mi "<mi-command>"

in TUI mode, which will allow to play with MI without abrupt switch to MI.
One thing, though: if all commands to gdb are in MI, then there's no point in 
showing them in the "gdb" window -- the responses from most MI commands are 
not for user.

This reminds me of:

   http://bugs.kde.org/show_bug.cgi?id=81277

Maybe, we indeed should use GDB window only to show output of user commands, 
and filter out everything that frontend sends itself? 

- Volodya




More information about the KDevelop-devel mailing list