Re: MI & pretty-printing

Vladimir Prus
2009-09-05T09:27:27Z

Tom Tromey wrote:

>>>>>> "Volodya" == Vladimir Prus <vladimir@codesourcery.com> writes:
>
> Volodya> On IRC, Tom and I talked about best way to support Python
> Volodya> pretty-printing with MI. Here's my attempt at summarizing.
>
> I finally finished the first draft of this. I pushed it to the
> archer-tromey-python branch today. Please give it a try; if it is all
> looking ok I will extract it and push it into CVS.

Tom,

I have a couple of more questions:

1. Do you think it would be OK to make the has_more field always present?
This will allow to simplify the frontend code a bit? For non-dynamic varobjs,
it should be non-zero in var-create response if there are children.

2. Do you think it would be OK to add a special field to indicate that varobj
is dynamic? For example, if I expand a regular varobj, I probably want to
fetch every field, while for dynamic, I want to fetch just 10.

I can implement the above myself, I think, if you don't have any disagreement.

Thanks,
Volodya