From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5269 invoked by alias); 22 May 2011 11:17:29 -0000 Received: (qmail 5261 invoked by uid 22791); 22 May 2011 11:17:29 -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; Sun, 22 May 2011 11:17:15 +0000 Received: (qmail 29626 invoked from network); 22 May 2011 11:17:14 -0000 Received: from unknown (HELO scottsdale.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 22 May 2011 11:17:14 -0000 From: Pedro Alves To: gdb-patches@sourceware.org Subject: Re: [PATCH] %g0 on sparc should always be available Date: Sun, 22 May 2011 11:17:00 -0000 User-Agent: KMail/1.13.5 (Linux/2.6.35-28-generic; KDE/4.6.2; x86_64; ; ) Cc: Mark Kettenis References: <201105211919.p4LJJn5Z013541@glazunov.sibelius.xs4all.nl> In-Reply-To: <201105211919.p4LJJn5Z013541@glazunov.sibelius.xs4all.nl> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201105221217.12418.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/msg00506.txt.bz2 On Saturday 21 May 2011 20:19:49, Mark Kettenis wrote: > Many RISC CPUs have a register that's hardwired to 0. Typically GDB > code uses regcache_raw_supply(..., ..., NULL) to "transfer" the value > of such a register. However these days, that marks the register as > unavailable. This diff fixes that for %g0 on SPARC. > > Committed as obvious. Thanks! The stuff is going into 7.3 as well. Want to put the patch there too? (I see alpha-tdep.c needs the same treatment for ALPHA_ZERO_REGNUM.) -- Pedro Alves