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: [PATCH 1/2] Update doc on displayhint in command -var-list-children


>>>>> "Yao" == Yao Qi <yao@codesourcery.com> writes:

Yao> When using command -var-list-children, "displayhint" is the result of
Yao> each child, instead of the attribute of the result, shown as the
Yao> following output.

This seems wrong to me.

If a varobj has a pretty-printer, then the display hint is an attribute
of that printer.  It ought to be printed as an attribute of the result.

Of course, child objects can have their own pretty-printers, and thus
their own display hints.

I couldn't find any tests that explicitly examined the display hint.
That seems wrong too... I know the python code in the test suite returns
values here, but nothing seems to check them.

Tom


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