Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Keith Seitz <keiths@redhat.com>
To: Bob Rossi <bob_rossi@cox.net>
Cc: gdb@sources.redhat.com
Subject: Re: GDB/MI & CLI commands
Date: Sat, 08 Feb 2003 15:55:00 -0000	[thread overview]
Message-ID: <1044719975.1572.9.camel@lindt.uglyboxes.com> (raw)
In-Reply-To: <20030208025807.GA8872@white>

On Fri, 2003-02-07 at 18:58, Bob Rossi wrote:

> I would like to know if in the official release of mi ( when its basically
> complete ) will accept CLI commands from the client and give back mi
> responses?

No: this behavior exists today ONLY because maintainers know that the MI
command set is incomplete. Once the command set is considered "complete"
(or 9x% complete?), I presume that this "feature" will disappear. (I say
"presume" because I am not a gdb maintainer; nonetheless, I am 99% sure
that it will disappear once the command set is considered [nearly?]
complete.)

> This is important to me since I plan on implementing a console for the
> user to issue CLI commands.

This is what "interpreter-exec" is for (as you suspected).

> What is the difference between MI and -interpreter-exec?

The MI command "-interpreter-exec" is used to execute a command in a
different interpreter. This is how you would implement a console in a
GUI. For example, if I have a console window somewhere, and the user
enters "help<ENTER>", my UI code would call (eventually):
 
-interpreter-exec console "help"

And it would get back the output of the "help" command, encapsulated in
MI syntax, something like:

~"List of classes of commands:\n"
~"\n"
~"aliases -- Aliases of other commands\n"
[etc]

The readline-like capabilities of the UI's command line are considered a
UI-specific feature. For example, in Insight, we do not use readline. We
emulate the most commonly used readline commands, but we do not call any
readline functions at all. IMO, this is no big deal. I've never missed
anything, and I've only ever gotten one patch to add "missing" features.
YMMV.

Hope this helps some,
Keith



      reply	other threads:[~2003-02-08 15:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-07 14:55 Bob Rossi
2003-02-07 15:10 ` Bob Rossi
2003-02-07 20:29   ` Keith Seitz
2003-02-08  2:58     ` Bob Rossi
2003-02-08 15:55       ` Keith Seitz [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=1044719975.1572.9.camel@lindt.uglyboxes.com \
    --to=keiths@redhat.com \
    --cc=bob_rossi@cox.net \
    --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