Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@redhat.com>
To: Alain Magloire <alain@qnx.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFC] -mi-level command
Date: Sun, 22 Jun 2003 18:15:00 -0000	[thread overview]
Message-ID: <3EF5F237.6010601@redhat.com> (raw)
In-Reply-To: <200305072028.QAA03258@node1.ott.qnx.com>


>> Should it also include the gdb version string?
> 
> 
> It is already covered by:
> 	-gdb-version

Doh!

>> Should it indicate the range of supported MI versions?
>> (what ever is useful).
> 
> 
> I think what you are referring is a set command like
> 
> -mi-set-level "mi2"
> 
> In this case, I am only interested in knowing the mi protocol version.

Ok.

>> 'gdb -i=mi2' should get you back to something that was released in 5.3. 
>>   "mi3" won't become official until GDB 6 is released, however, for it 
>> it return "2" would be wrong.
>> 
> 
> 
> Well the problem is that the function mi_version() is returning "3"
> How can I, reliably, get the MI version beeing use?

Use a GDB from a released branch (hope I remember to do the next one 
correctly).  At that point -gdb-version should return something 
meaningful, and -mi-version will be considered frozen.

The gdb on the mainline gets its mi version rolled as soon as something 
incompatible gets changed.  So while the last release reports "2", the 
mainline reports the work-in-progress "3".

>> It will need documentation and a testcase.
>> 
> 
> 
> Agreed, will do, if the new command is accepted.
> 
> BTW: seems to have some confusion with "MI level" and "MI version"
> 
> Should the command name be :
> -mi-level
> or
> -mi-version

Argh.

I suspect -mi-version is better.  There are potential incompatibilities 
between the diferent versions.

Andrew




      reply	other threads:[~2003-06-22 18:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-07 18:34 Alain Magloire
2003-05-07 19:40 ` Andrew Cagney
2003-05-07 20:28   ` Alain Magloire
2003-06-22 18:15     ` Andrew Cagney [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=3EF5F237.6010601@redhat.com \
    --to=ac131313@redhat.com \
    --cc=alain@qnx.com \
    --cc=gdb-patches@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