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: [RFA] 12843


On Monday 29 August 2011 21:21:12 ext Jan Kratochvil wrote:
> On Mon, 29 Aug 2011 14:17:02 +0200, Andrà PÃnitz wrote:
> > I am really interested in the IDE case which I believe to be one intented
> > use case for the MI protocol, and would like to ask to consider choosing 
> > a robust protocol that makes general automated interaction with gdb simple.
> 
> When you are already considering changes on the front end side has been
> discussed some replacement by D-Bus, ORBit2 or similar RPC protocol?

Please, pretty please, don't go down that road.

Consider using something that's available _painlessly_ cross-platform,
possibly avoid additional dependencies just for transfering a few
bytes. A text protocol with well-defined escape rules is completely 
fine here, and not _that_ difficult to define and implement.

It's already today quite some effort to get a properly Python-enabled
gdb up and running and distributed on e.g. Windows. There wasn't
even an "official" build for quite some time...

> It would make all the parsing and escaping not any issue.

It looks like the "parsing and escaping problems" come from the
attempt to stay compatible with the currently existing linespec 
syntax. There seemed to be consensus that a second set of
parameters with well-defined syntax would solve that problem.

> I spend these days on some entryval extensions of MI protocol 
> so I have these ideas.

I've been adding extra "MI style" output fields for all kind of data,
including structured and image data, for two years now, and  
escaping is _really_ not a problem. At worst, and if it needs to be
fast, one can base64- or hex-encode on one side and decode on
the other. It's a _M_achine _I_nterface after all.

Andre'


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