From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14277 invoked by alias); 11 Dec 2012 13:29:19 -0000 Received: (qmail 14237 invoked by uid 48); 11 Dec 2012 13:29:15 -0000 From: "developer at audioranger dot com" To: gdb-prs@sourceware.org Subject: [Bug python/13111] -var-update doesn't handle type changes of array childs Date: Tue, 11 Dec 2012 13:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: python X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: developer at audioranger dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Summary Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2012-q4/txt/msg00365.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=13111 Mathias Kunter 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 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.