This is the mail archive of the gdb-prs@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]

[Bug python/13111] -var-update doesn't handle type changes of arraychilds


http://sourceware.org/bugzilla/show_bug.cgi?id=13111

Mathias Kunter <developer at audioranger dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|"-var-update" command       |-var-update doesn't handle
                   |incorrect when using pretty |type changes of array
                   |printers                    |childs

--- Comment #4 from Mathias Kunter <developer at audioranger dot com> 2012-12-11 13:29:12 UTC ---
I understand that -var-update can't work if the pretty printer depends on
non-local data, as described in bug 14854. However, I don't think this bug is
related to that problem.

The problem here is that -var-update apparently doesn't handle type changes of
childs of array-printed types, but only value changes. Note that this doesn't
apply to string types, as they can't change their types when pretty-printed. As
an example, printing the above "printMePretty" structure as string type results
in:

If printAsInt is true: Type is "printMePretty", value is "255"
If printAsInt is false: Type is "printMePretty", value is "3.1415"

Everything OK here, the type will always just be "printMePretty" and won't
change. However, printing the same structure in array form results in:

If printAsInt is true: Parent type is "printMePretty", child type is "int",
child value is "255"
If printAsInt is false: Parent type is "printMePretty", child type is "float",
child value is "3.1415"


-var-update recognizes a value change of the child, but fails to recognize the
type change.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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