From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23093 invoked by alias); 17 Jan 2004 16:36:28 -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 23086 invoked from network); 17 Jan 2004 16:36:27 -0000 Received: from unknown (HELO localhost.redhat.com) (65.49.4.239) by sources.redhat.com with SMTP; 17 Jan 2004 16:36:27 -0000 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 98C1C2B8F; Sat, 17 Jan 2004 11:02:13 -0500 (EST) Message-ID: <40095C85.8090003@gnu.org> Date: Sat, 17 Jan 2004 16:36:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030820 MIME-Version: 1.0 To: Richard.Earnshaw@arm.com Cc: Daniel Jacobowitz , gdb-patches@sources.redhat.com Subject: Re: RFA/ARM: Switch mode when setting PC References: <200401171049.i0HAnJ722639@pc960.cambridge.arm.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-01/txt/msg00438.txt.bz2 >> On Fri, Jan 16, 2004 at 02:12:18PM -0500, Andrew Cagney wrote: > >> > Or a lack of design, Arm needs to ensure that it doesn't define PC_REGNUM. > >> >> OK, I'll keep that in mind. >> > >> > >In the past we've tried to distinguish R15 from PC. This was especially >> > >useful in the legacy 26-bit mode where the CPSR bits *were* in R15. > >> >> Perhaps, in that case, we should have the PC as a pseudoregister. That >> would simplify a lot of arm-tdep.c. > > > That was my feeling too. BTW, the user visible $pc is now typically per-frame and tied to the "unwound return address". If that pseudo-register were made visible things could get confusing. Andrew