From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13274 invoked by alias); 7 Apr 2002 21:08:47 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 13266 invoked from network); 7 Apr 2002 21:08:47 -0000 Received: from unknown (HELO localhost.redhat.com) (24.112.240.27) by sources.redhat.com with SMTP; 7 Apr 2002 21:08:47 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 00A903CC0; Sun, 7 Apr 2002 17:08:41 -0400 (EDT) Message-ID: <3CB0B559.3000306@cygnus.com> Date: Sun, 07 Apr 2002 14:08:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.9) Gecko/20020328 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel Jacobowitz Cc: gdb-patches@sources.redhat.com Subject: Re: [patch] Add PS_REGNUM. References: <3CAF59CA.1060304@cygnus.com> <20020407143417.A26612@nevyn.them.org> <3CB095CA.6090405@cygnus.com> <20020407165937.A30127@nevyn.them.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-04/txt/msg00264.txt.bz2 > I think it is the other way round. PS_REGNUM is the only one being used >> correctly - when >=0, std-regs.c (new file) maps $ps onto a >> hardware/pseudo register. Cf the GDB manual. >> >> On the other hand FP_REGNUM, PC_REGNUM and SP_REGNUM that are being used >> ``incorrectly''(1). They have no meaning outside of std-regs.c yet are >> used throughout GDB. > > > So what you're saying is that you added PS_REGNUM so that it could be > used as a standard $ps register name, not for the rest of GDB, right? Yes. And that is how FP_REGNUM et.al. should be used .... > I don't really see the point; anyone who wants to look at the processor > status register presumably knows what some of the bits in it mean, > which is entirely architecture dependant. But caveat implementor :) Who am I to argue with the documentation :-) Andrew