Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Bob Rossi <bob@brasko.net>
To: GDB <gdb@sources.redhat.com>
Subject: Re: MI and backwards compatibility
Date: Sat, 02 Oct 2004 16:26:00 -0000	[thread overview]
Message-ID: <20041002153815.GC5224@white> (raw)
In-Reply-To: <20041001142517.GD4100@white>

Ping.

I guess the main questions is, is the goal of GDB to support old
versions of MI? For instance, if GDB is currently at MI3, will it
support a front end that only knows MI2? If so, then I need the
documentation for the MI2 interface if I want to make my front end work
with that version of the protocol.

This is a general issue and quit frankly a very simple question. Could I
get a response to at least what GDB does now. Then, maybe we can talk
about what it should do, and if it is doing what it should do.

Thanks,
Bob Rossi

On Fri, Oct 01, 2004 at 10:25:17AM -0400, Bob Rossi wrote:
> Hi,
> 
> Taking Eli's suggestion, I am starting a simple discussion here only on
> how front end developers should expect there front end to work with
> different versions of GDB.
> 
> >From Eli Zaretskii <eliz@gnu.org>
> > All the MI versions except the latest are kept for one reason only:
> > backward compatibility.  So an already existing front end should use
> > the version it was written to support, while a new front end should
> > use the latest version, the one invoked by "-interpreter=mi".  Doesn't
> > this solve the problem?  If not, why not, and what solutions you can
> > suggest to solve that?
> 
> I guess the *real* problem is how we expect a front end and multiple
> versions of GDB work together. I think there needs to be a section in the
> documentation that describes backwards compatibility. For instance, I
> think that a front end programmed to understand mi1 should always work
> with a GDB that is capable of outputting mi1. For instance, here are
> some example GDB's and MI versions for demonstration,
> 
> GDB version with MI versions
> 
>    GDB 1.0 -> mi1
>    GDB 2.0 -> mi1,mi2
>    GDB 3.0 -> mi1,mi2
>    GDB 4.0 -> mi1,mi2,mi3
>    GDB 5.0 -> mi1,mi2,mi3,mi4
> 
> Front end version which understands MI version
>    FE  1.0 -> mi2
>    FE  2.0 -> mi2,mi3
>    FE  3.0 -> mi2,mi3,mi4
> 
> So, here is an example that I don't see to far fetched within the next
> few years. The question is, what does backwards compatibility mean?
> This is what I expect,
> 
> FE 1.0 or after to never work with GDB 1.0
> FE 1.0 to work with GDB 2.0 on using mi2.
> FE 2.0 to work with GDB 2.0 and 3.0 using mi2
>            and with GDB 4.0 on with mi3
> FE 3.0 to work with GDB 2.0 and 3.0 using mi2
>            and with GDB 4.0 with mi3
>            and with GDB 5.0 with mi4
> 
> Is this what everyone else expects?
> 
> Thanks,
> Bob Rossi


  reply	other threads:[~2004-10-02 15:38 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 [this message]
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
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=20041002153815.GC5224@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