From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12857 invoked by alias); 3 Sep 2009 22:04:02 -0000 Received: (qmail 12844 invoked by uid 22791); 3 Sep 2009 22:04:01 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_53,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 03 Sep 2009 22:03:57 +0000 Received: (qmail 23746 invoked from network); 3 Sep 2009 22:03:55 -0000 Received: from unknown (HELO orlando) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 3 Sep 2009 22:03:55 -0000 From: Pedro Alves To: gdb@sourceware.org Subject: Re: store.exp failure on i686-linux with newer gcc's Date: Thu, 03 Sep 2009 22:04:00 -0000 User-Agent: KMail/1.9.10 Cc: Doug Evans References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200909032303.56901.pedro@codesourcery.com> X-IsSubscribed: yes 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: 2009-09/txt/msg00060.txt.bz2 On Thursday 03 September 2009 22:50:13, Doug Evans wrote: > Newer gcc's can store a 64 bit int in non-contiguous registers and use > DW_OP_piece to mark each piece. > > value->lval is set to not_lval and value_assign doesn't like that so > gdb refuses to set the variable with "Left operand of assignment is > not an lvalue." > > It seems like we need to not mark the value as not_lval and teach the > relevant pieces how to handle such values. > Anyone thought about how they want this done? Nathan Froyd has a patch for this, using the lval_computed machinery. -- Pedro Alves