This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: MI and backwards compatibility


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]