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 Tuesday 30 August 2011 19:20:58 ext Tom Tromey wrote:
> >>>>> "AndrÃ" == Andrà PÃnitz <andre.poenitz@nokia.com> writes:
> 
> Tom> Do you generate MI-compliant output from Python?  I'm curious.
> 
> AndrÃ> Sort of. Originally it was fully compliant, then extra fields had been
> AndrÃ> added and additional commas became "legal" (to save a few cycles
> AndrÃ> for the check whether they are necessary). But it's still pretty MI-ish.
> 
> I ask because I occasionally wonder whether it would be useful to add
> support for converting (a subset of) Python objects to MI.
> 
> Phil might need it for breakpoint_ops; but I think we were thinking in
> terms of a one-off, where a generic facility might be better.

Having a generic way to serialize gdb's python objects to MI might
be convenient. On the other hand that's generally not too difficult 
to do "manually" for some specific case. 

It might be also interesting from a performance point of view,
especially if this would be usable for lots of items. 

I am not sure how much of a difference this would make, though, 
but allowing the "sloppy" commas I mentioned certainly made a
difference, so I guess there's some general potential to gain a
few cycles by doing the formatting in C and not in Python.

Andre'


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