From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31806 invoked by alias); 26 Apr 2008 21:28:09 -0000 Received: (qmail 31793 invoked by uid 22791); 26 Apr 2008 21:28:08 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 26 Apr 2008 21:27:51 +0000 Received: (qmail 9424 invoked from network); 26 Apr 2008 21:27:49 -0000 Received: from unknown (HELO localhost) (vladimir@127.0.0.2) by mail.codesourcery.com with ESMTPA; 26 Apr 2008 21:27:49 -0000 From: Vladimir Prus To: gdb@sourceware.org Subject: MI floating varobj of invalid value Date: Sat, 26 Apr 2008 22:27:00 -0000 User-Agent: KMail/1.9.6 (enterprise 0.20070907.709405) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200804270127.48885.vladimir@codesourcery.com> Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-04/txt/msg00216.txt.bz2 Presently, floating varobjs are reparsed and reevaluated at each stop. Reevaluation can change the value, or can change type, or even can result in error, in which case varobj will be marked out of scope. The only transition that is not supposed now is from invalid state into valid state. Suppose I've created varobj for watching for expression 'foo' and after some debugging ended the debug session. When I start debug again, I still want to see the value of 'foo'. However, if frontend tries to create varobj for foo at the first stop, and 'foo' is not in scope, then varobj will not be created. This means that the frontend has to try to create varobj on each stop, until that succeeds. This sounds unnecessary -- we can make creation of floating varobj always succeed, and then frontend can use -var-update to monitor changes in varobj state. Does making creation of floating varobj always succeed seem a good idea? - Volodya