From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4986 invoked by alias); 11 Oct 2011 18:28:35 -0000 Received: (qmail 4962 invoked by uid 22791); 11 Oct 2011 18:28:34 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from shards.monkeyblade.net (HELO shards.monkeyblade.net) (198.137.202.13) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 11 Oct 2011 18:28:20 +0000 Received: from localhost (nat-pool-rdu.redhat.com [66.187.233.202]) (authenticated bits=0) by shards.monkeyblade.net (8.14.4/8.14.4) with ESMTP id p9BISFvc023894 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 11 Oct 2011 11:28:16 -0700 Date: Tue, 11 Oct 2011 18:28:00 -0000 Message-Id: <20111011.142815.759252421999066508.davem@davemloft.net> To: pedro@codesourcery.com Cc: gdb-patches@sourceware.org Subject: Re: [PATCH] Fix regcache_restore() handling of unavailable regs. From: David Miller In-Reply-To: <201110111144.49959.pedro@codesourcery.com> References: <20111011.024027.2269565520682513251.davem@davemloft.net> <201110111144.49959.pedro@codesourcery.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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-10/txt/msg00319.txt.bz2 From: Pedro Alves Date: Tue, 11 Oct 2011 11:44:49 +0100 > OOC, what register are you seeing as unavailable? %wim and %tbr on sparc 32-bit > Is this a case of ptrace not exposing all the machine's registers? Yes, ptrace() does not provide these registers. They really aren't relevant for analyzing userland process execution at all. They are, however, useful when debugging an operating system over a serial line with GDB, and the Sparc infrastructure for that does properly provide these registers.