Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Bob Rossi <bob@brasko.net>
To: GDB <gdb@sources.redhat.com>
Subject: probing GDB for MI versions (summary)
Date: Wed, 06 Oct 2004 18:30:00 -0000	[thread overview]
Message-ID: <20041006181903.GM12213@white> (raw)

Hi,

It seems that at this point, everyone agrees there needs to be a command
in GDB that allows it to output the official versions of MI that it supports. 
I think this is very good, since it addresses many of the problems that I
am facing.

So far there have been several proposals,

   * A command line switch
   * A new interpreter that outputs the interpreters that GDB supports
   * A new MI command
   * Starting GDB with every possible interpreter, until one is found.

I originally like the command line switch, which Eli disapproved of
because of the general public having access to useless information.

I agree with Eli on this point, and I came up with the idea from
Nathan's Email that a new interpreter could be invoked, and the
interpreter was only capable of outputting the interpreters that the
current GDB supports. This is a simple solution and I would prefer to
see it implemented. It avoids the problem that Eli had.

Adding a new MI command is the worst case scenario in my opinion. The
reason is because a front end that understands all of the MI protocols
can not use any of them to ask GDB what protocols it supports. The front
end has to come up with some new parser, that has to understand future
protocols that have not been invented.

Starting GDB with every possible interpreter. This solution is workable
but is ugly and could make the user wait for GDB to be started several
times for no reason at all. Also, the problem with developmental
versions is still an issue on this approach.

Any comments?

Thanks,
Bob Rossi


                 reply	other threads:[~2004-10-06 18:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20041006181903.GM12213@white \
    --to=bob@brasko.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