From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20648 invoked by alias); 24 May 2011 11:16:50 -0000 Received: (qmail 20639 invoked by uid 22791); 24 May 2011 11:16:49 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 24 May 2011 11:16:15 +0000 Received: (qmail 15180 invoked from network); 24 May 2011 11:16:14 -0000 Received: from unknown (HELO scottsdale.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 24 May 2011 11:16:14 -0000 From: Pedro Alves To: Joel Brobecker Subject: Re: $zero on alpha should always be available Date: Tue, 24 May 2011 11:16:00 -0000 User-Agent: KMail/1.13.5 (Linux/2.6.35-28-generic; KDE/4.6.2; x86_64; ; ) Cc: gdb-patches@sourceware.org, Mark Kettenis References: <201105211919.p4LJJn5Z013541@glazunov.sibelius.xs4all.nl> <201105231835.54370.pedro@codesourcery.com> <20110524044418.GC4909@adacore.com> In-Reply-To: <20110524044418.GC4909@adacore.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201105241216.07135.pedro@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-05/txt/msg00557.txt.bz2 On Tuesday 24 May 2011 05:44:18, Joel Brobecker wrote: > > Here's what I came up with by inspection. I have no alpha machine to test > > this on. The alpha-nat.c change would need > > checking on an alpha running OSF if we wanted to test this... > > Thanks, Pedro. I will try to test this tomorrow. I think Tru64 is > one of the systems where expect or tcl no longer work for me, so > I might not be able to run the testsuite. But worse case scenario, > I can try running it against AdaCore's testsuite. Thanks Joel. Even if you can't run any testsuite, confirming that nothing broke in an obvious way, and that $zero appears as 0 to 'p $zero' or "info all-registers", and not as with a running program would be a good test already. The alpha-nat.c change is trying to make the same fix for loading alpha-OSF cores. > > > 2011-05-23 Pedro Alves > > > > gdb/ > > * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true > > for ALPHA_ZERO_REGNUM. > > (alpha_supply_int_regs): Explicitly supply zero as the value for > > ALPHA_ZERO_REGNUM in the register cache. > > * alpha-nat.c (fetch_osf_core_registers): Ditto. > > -- Pedro Alves