From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21989 invoked by alias); 17 Nov 2012 19:16:18 -0000 Received: (qmail 21948 invoked by uid 48); 17 Nov 2012 19:16:18 -0000 From: "poenitz at htwm dot de" To: gdb-prs@sourceware.org Subject: [Bug python/13111] "-var-update" command incorrect when using pretty printers Date: Sat, 17 Nov 2012 19:16: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: poenitz at htwm dot de 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: CC 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/msg00264.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=13111 Andre' Poenitz changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |poenitz at htwm dot de --- Comment #1 from Andre' Poenitz 2012-11-17 19:16:17 UTC --- -var-update was created to keep track of standard situations, like watching data members of C style structures. They can conceptually not work for "complex" pretty-printing in the presence of arbitrary changes to the environment like the value of global variables or the return value of function calls. The only safe approach for a gdb frontend is to not rely on -var-update (or varobj at all for that matter) and re-run all pretty printers everytime something could have changed. -- 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.