This is the mail archive of the gdb-patches@sourceware.org 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: [patch] MI: breakpoint "script" is a LIST


On Thu, 13 Nov 2008 14:12:54 +0100, Vladimir Prus wrote:
> Jan Kratochvil wrote:
> > Nemiver could not parse the MI2 output.  The list of commands is a `list', not
> > a `tuple'.
> 
> For how long this bug is here? Is the risk that existing frontend break higher than
> inconvenience to keep the code as is?

The current code does not comply to any generic MI parser as it violates the
MI grammar http://sourceware.org/gdb/current/onlinedocs/gdb_26.html#SEC264 ,
as pointed out by Dodji.

It may be compliant only to some hacky buggy parsers written specifically for
each MI command.

If we want to keep -break-list "script" to produce tuples we have to change it
from current
  script={"silent","return"}
to some
  script={line0="silent",line1="return"}
which will IMO also break any existing buggy parsers.

And GDB is now between major releases 6.8->6.9 which IMO means it does not
have to keep bug-to-bug compatibility.


Regards,
Jan


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