public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "developer at audioranger dot com" <sourceware-bugzilla@sourceware.org> 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 [thread overview] Message-ID: <bug-13111-4717-N5GLlwc1nR@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <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.
next prev parent reply other threads:[~2012-12-11 13:29 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-08-19 15:46 [Bug python/13111] New: "-var-update" command incorrect when using pretty printers developer at audioranger dot com 2012-11-17 19:16 ` [Bug python/13111] " poenitz at htwm dot de 2012-12-10 19:23 ` developer at audioranger dot com 2012-12-11 6:45 ` poenitz at htwm dot de 2012-12-11 13:29 ` developer at audioranger dot com [this message] 2012-12-11 13:33 ` [Bug python/13111] -var-update doesn't handle type changes of array childs developer at audioranger dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-13111-4717-N5GLlwc1nR@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).