This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/13111] -var-update doesn't handle type changes of arraychilds
- From: "developer at audioranger dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 11 Dec 2012 13:29:12 +0000
- Subject: [Bug python/13111] -var-update doesn't handle type changes of arraychilds
- Auto-submitted: auto-generated
- References: <bug-13111-4717@http.sourceware.org/bugzilla/>
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.