From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13685 invoked by alias); 7 Aug 2003 21:40:24 -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 13677 invoked from network); 7 Aug 2003 21:40:23 -0000 Received: from unknown (HELO maxipes.logix.cz) (81.0.234.97) by sources.redhat.com with SMTP; 7 Aug 2003 21:40:23 -0000 Received: from suse.cz (unknown [2002:3ef5:4ad1::1]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "Michal Ludvig", Issuer "Personal Freemail RSA 2000.8.30" (verified OK)) by maxipes.logix.cz (Postfix) with ESMTP id D7082299E6; Thu, 7 Aug 2003 23:40:22 +0200 (CEST) Message-ID: <3F32C75D.2010007@suse.cz> Date: Thu, 07 Aug 2003 21:40:00 -0000 From: Michal Ludvig User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5a) Gecko/20030718 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Andrew Cagney Cc: Daniel Jacobowitz , gdb Subject: Re: [testsuite & dwarf2] How to handle store.exp failure on AMD64? References: <3F3212B7.8060003@suse.cz> <20030807135035.GA28000@nevyn.them.org> <3F326928.3020502@redhat.com> <20030807150201.GA29511@nevyn.them.org> <3F3275EC.3000702@redhat.com> In-Reply-To: <3F3275EC.3000702@redhat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-08/txt/msg00110.txt.bz2 Andrew Cagney wrote: > For this specific ABI and problem, did GCC put the value in a preserved > regiter ... > >>> - GCC -O0 should should not eliminate variables, and should preserve >>> all variables across function calls. >>> >>> Given that is compiled with -O0, I think GCC is failing on count #3 >>> here. > > or a scratch register? Into the preserved register (%rbx). When I added the appropriate DW_CFA_same_value instruction to the .s file, the register was correctly unwound and the value of the variable in an upper frame shown. Michal Ludvig