From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16115 invoked by alias); 8 Jan 2003 19:11:06 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 15922 invoked from network); 8 Jan 2003 19:10:53 -0000 Received: from unknown (HELO localhost.redhat.com) (216.138.202.10) by 209.249.29.67 with SMTP; 8 Jan 2003 19:10:53 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id E4C263EC2; Wed, 8 Jan 2003 14:10:44 -0500 (EST) Message-ID: <3E1C77B4.8070401@redhat.com> Date: Wed, 08 Jan 2003 19:11:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.1) Gecko/20021211 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel Jacobowitz Cc: gdb@sources.redhat.com Subject: Re: Failures in store.exp caused by regcache References: <20030108190506.GA558@nevyn.them.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-01/txt/msg00087.txt.bz2 > (Or rather, by the value code's interaction with the regcache) > > Andrew, this is more your area; I'd like your advice before I dig any > further. Here's what's going wrong. Consider the command sequence: > "up; print u; set u = s_1; print u". > - u has class LOC_REGISTER > - The register's home is memory > - read_var_value therefore returns an lval_memory > - the value of the register is in the register unwind cache at this point > - we modify the memory backing the store > - we have no way to tell that we've just modified the value of a saved > register on the stack > - the second print returns the cached value > > So, what do we do? Flush the frame cache. Andrew