Re: [patch] Use the string returned by pretty printer for MI varobjs instead of "{...}"

André Pönitz
2012-05-17T12:19:41Z

On Wed, May 16, 2012 at 08:58:42AM -0600, Tom Tromey wrote:
> >>>>> <andre.poenitz@mathematik.tu-chemnitz.de> writes:
>
> Tom> My recollection is that the code originally worked this way, but
> Tom> Vladimir asked for the "{...}" behavior specifically.
>
> AndrÃ©> It might affect frontends taking a "{...}" as indication that
> AndrÃ©> there are childrens. In fact, I just found some code using that
> AndrÃ©> as a shortcut.
>
> That code is just plain broken, though. The has_more field conveys
> this information.

If you say so.

'git blame' thinks you added it in September 2009, so gdb 7.0 is
probably the first one that has it. Calling code "broken" just
because it handles (also...) "legacy" setups is a bit of a stretch
in my opinion.

In any case, I was merely trying to convey the idea that an
unsuspecting frontend implementor might read the documentation
in a way that would be incompatible with the change.

I am personally not affected by any change in the -var-*
output, so maybe I should not have bothered to comment at all.

If you really want to read more into the comment than what was
actually written, then perhaps a friendly nudge to adapt the
documentation to existing practice.

Andre'