public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Unimplemented MI commands
@ 2004-09-23  7:46 Fabian Cenedese
  2004-09-23  9:33 ` Fabian Cenedese
  0 siblings, 1 reply; 4+ messages in thread
From: Fabian Cenedese @ 2004-09-23  7:46 UTC (permalink / raw)
  To: gdb

Hi

I've seen in mi/mi-cmds.c that about half of the mi commands are not
implemented yet. Are there plans for them? Or do I need to use the
normal console interface for these commands? I'm especially
interested in the -symbol-* functions where only one is available now.

Thanks

bye  Fabi


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Unimplemented MI commands
  2004-09-23  7:46 Unimplemented MI commands Fabian Cenedese
@ 2004-09-23  9:33 ` Fabian Cenedese
  2004-09-23 11:46   ` Bob Rossi
  0 siblings, 1 reply; 4+ messages in thread
From: Fabian Cenedese @ 2004-09-23  9:33 UTC (permalink / raw)
  To: gdb


>I've seen in mi/mi-cmds.c that about half of the mi commands are not
>implemented yet. Are there plans for them? Or do I need to use the
>normal console interface for these commands? I'm especially
>interested in the -symbol-* functions where only one is available now.

Replying to myself.

I've found this mail with a patch, why wasn't that included then?

http://sources.redhat.com/ml/gdb-patches/2002-09/msg00302.html

Thanks

bye  Fabi


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Unimplemented MI commands
  2004-09-23  9:33 ` Fabian Cenedese
@ 2004-09-23 11:46   ` Bob Rossi
  2004-09-27  7:31     ` Fabian Cenedese
  0 siblings, 1 reply; 4+ messages in thread
From: Bob Rossi @ 2004-09-23 11:46 UTC (permalink / raw)
  To: Fabian Cenedese; +Cc: gdb

On Thu, Sep 23, 2004 at 11:33:07AM +0200, Fabian Cenedese wrote:
> 
> >I've seen in mi/mi-cmds.c that about half of the mi commands are not
> >implemented yet. Are there plans for them? Or do I need to use the
> >normal console interface for these commands? I'm especially
> >interested in the -symbol-* functions where only one is available now.
> 
> Replying to myself.
> 
> I've found this mail with a patch, why wasn't that included then?
> 
> http://sources.redhat.com/ml/gdb-patches/2002-09/msg00302.html

Yes, only half of the functions are implemented. Not speaking for the
GDB people, but only for myself, I don't think they have any intention
on implementing the rest of the commands. However, if you need a certain
command maybe it would be done for you. However, I think that if you
need certain commands, it would be much better to add an mi command,
rather than use the CLI output.

Bob Rossi

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Unimplemented MI commands
  2004-09-23 11:46   ` Bob Rossi
@ 2004-09-27  7:31     ` Fabian Cenedese
  0 siblings, 0 replies; 4+ messages in thread
From: Fabian Cenedese @ 2004-09-27  7:31 UTC (permalink / raw)
  To: gdb


>> >I've seen in mi/mi-cmds.c that about half of the mi commands are not
>> >implemented yet. Are there plans for them? Or do I need to use the
>> >normal console interface for these commands? I'm especially
>> >interested in the -symbol-* functions where only one is available now.
>> 
>> Replying to myself.
>> 
>> I've found this mail with a patch, why wasn't that included then?
>> 
>> http://sources.redhat.com/ml/gdb-patches/2002-09/msg00302.html
>
>Yes, only half of the functions are implemented. Not speaking for the
>GDB people, but only for myself, I don't think they have any intention
>on implementing the rest of the commands. However, if you need a certain
>command maybe it would be done for you. However, I think that if you
>need certain commands, it would be much better to add an mi command,
>rather than use the CLI output.

I have started at updating the above patch to my 6.1 version (I guess the
actual cvs-gdb won't be much different in this regard). I already mailed
the original author about this patch but didn't get a reply yet. If it's accepted
I can send a patch with the updated source to be included. But I have no
idea about testcases, cleanup handling etc. There sure will be some
not-yet-right stuff in it which I would need help with.

While thinking about it I wondered why the MI functions need to have
an implementation of their own. Couldn't gdb be changed that the CLI
and the MI functions just consist of outputting the results in their
respecting format and use the same sub function to get the results?
Like that the behaviour would be consistent between CLI and MI. Errors
would be fixed for both simultaneously. And a new functionality would
have to be implemented only once. I think that should be the next task
after you have unified the MI. That would also get rid of some code
and complete the now quite unimplemented MI at the same time.

bye  Fabi


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-09-27  7:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-23  7:46 Unimplemented MI commands Fabian Cenedese
2004-09-23  9:33 ` Fabian Cenedese
2004-09-23 11:46   ` Bob Rossi
2004-09-27  7:31     ` Fabian Cenedese

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).