This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: MI & pretty-printing
- From: Vladimir Prus <vladimir at codesourcery dot com>
- To: gdb at sources dot redhat dot com
- Date: Sat, 05 Sep 2009 13:26:51 +0400
- Subject: Re: MI & pretty-printing
- References: <200907132142.18043.vladimir@codesourcery.com> <m3iqh0fyg0.fsf@fleche.redhat.com>
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