public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Fabian Cenedese <Cenedese@indel.ch>
To: gdb@sources.redhat.com
Subject: Re: Unimplemented MI commands
Date: Mon, 27 Sep 2004 07:31:00 -0000	[thread overview]
Message-ID: <5.2.0.9.1.20040927092234.01d6ebf0@NT_SERVER> (raw)
In-Reply-To: <20040923114602.GA408@white>


>> >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


      reply	other threads:[~2004-09-27  7:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-23  7:46 Fabian Cenedese
2004-09-23  9:33 ` Fabian Cenedese
2004-09-23 11:46   ` Bob Rossi
2004-09-27  7:31     ` Fabian Cenedese [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5.2.0.9.1.20040927092234.01d6ebf0@NT_SERVER \
    --to=cenedese@indel.ch \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).