This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: [Pretty printers] Can the name or type of a child value change?
>>>>> "Jens" == Elmenthaler, Jens <jens.elmenthaler@verigy.com> writes:
Jens> Consider the following code example:
[...]
Jens> When stepping in the debugger over a line that changes JAny.type,
Jens> the name and the type of the child value returned by the pretty
Jens> printer change.
Jens> Are the MI variable objects meant to handle this?
Yes. The MI consumer is expected to understand that dynamic varobjs are
dynamic: the number and names of children can change in arbitrary ways.
This is incompatible with previous expectations, which is why consumers
have to explicitly request this feature from gdb.
Tom