Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Bob Rossi <bob@brasko.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: gdb@sources.redhat.com
Subject: Re: MI and backwards compatibility
Date: Sun, 03 Oct 2004 16:39:00 -0000	[thread overview]
Message-ID: <20041003163228.GA7030@white> (raw)
In-Reply-To: <01c4a904$Blat.v2.2.2$9a9c14a0@zahav.net.il>

On Sun, Oct 03, 2004 at 06:50:07AM +0200, Eli Zaretskii wrote:
> > Date: Sat, 2 Oct 2004 13:24:49 -0400
> > From: Bob Rossi <bob@brasko.net>
> > Cc: gdb@sources.redhat.com
> > 
> > If for example the -break-list command in the MI3 protocol becomes 
> > incompatible with the -break-list command that was in the MI2 protocol, 
> > and the MI version is bumped from 2 to 3 because of it, 
> > 
> >    * will -break-list be left around for old front ends that use MI2 and a 
> >    new MI command -break-list-new be created for front ends that use MI3?
> > 
> >    * will -break-list act differently in MI2 mode than it will for MI3
> >      mode?
> > 
> >    or the very bad broken case,
> > 
> >    * will -break-list act the new way in both MI2 and MI3 mode?
> 
> It should be the second alternative.  If the first alternative were
> true, we wouldn't need to bump the MI version.

OK, so the official stance of the MI protocol within GDB is to be
backwards compatible, and the commands themselves will act differently
for different version of the MI protocol?

Does the testsuite still test all of the MI tests for each protocol that
the current GDB supports ? 
I would consider this to be reasonably important, otherwise, I could see 
that old MI protocol versions would quickly not conform to the output one 
would expect.

> > BTW, I think it would be helpful to put the information on this thread
> > in the MI doco, so that front end developers understand the compatibility
> > philosophy of GDB's MI interface.
> 
> I don't think it would be a good idea to point people at a mailing
> list thread.  What we normally do is when some piece of information
> like what is discussed in this thread sounds important to have in the
> docs, we add the information itself to gdbint.texinfo or some other
> relevant documentation file.

Yes of course, I was suggesting to add a section maybe called "MI
backwards compatibility" that was short and simply just described the
philosophy of backwards compatibility of the MI protocol. 

Thanks,
Bob  Rossi


  reply	other threads:[~2004-10-03 16:32 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-01 14:25 Bob Rossi
2004-10-02 16:26 ` Bob Rossi
2004-10-02 17:06   ` Eli Zaretskii
2004-10-03  4:53     ` Bob Rossi
2004-10-03 15:02       ` Eli Zaretskii
2004-10-03 16:39         ` Bob Rossi [this message]
2004-10-02 16:28 ` Eli Zaretskii
2004-10-02 16:38   ` Bob Rossi
2004-10-02 17:24     ` Eli Zaretskii
2004-10-05 19:41 ` Andrew Cagney
2004-10-06  1:01   ` Daniel Jacobowitz

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=20041003163228.GA7030@white \
    --to=bob@brasko.net \
    --cc=eliz@gnu.org \
    --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