From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C3C57385624D; Wed, 25 May 2022 19:54:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C3C57385624D From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug mi/11738] -var-evaluate-expression doesn't work after removing pretty printer Date: Wed, 25 May 2022 19:54:16 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: mi X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at sourceware dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: 7.1 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 May 2022 19:54:16 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D11738 Tom Tromey changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tromey at sourceware dot o= rg --- Comment #1 from Tom Tromey --- I didn't set up a test case for a pointer pretty-printer, but I wonder if invoking -var-update first would help. I see this code in c-varobj.c: /* If the specified format is the current one, we can reuse print_value. */ if (format =3D=3D var->format) return var->print_value; else return varobj_value_get_print_value (var->value.get (), forma= t, var); So I suspect what's happening is that resetting the visualizer does not change the print_value, and so then gdb thinks it can just reuse the existing one. --=20 You are receiving this mail because: You are on the CC list for the bug.=