From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12711 invoked by alias); 26 Apr 2002 15:09:52 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 12699 invoked from network); 26 Apr 2002 15:09:50 -0000 Received: from unknown (HELO localhost.redhat.com) (24.112.240.27) by sources.redhat.com with SMTP; 26 Apr 2002 15:09:50 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 52CDC3D5A; Fri, 26 Apr 2002 11:09:45 -0400 (EDT) Message-ID: <3CC96DB9.9060504@cygnus.com> Date: Fri, 26 Apr 2002 08:09:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.9) Gecko/20020424 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Andrew Cagney Cc: gdb@sources.redhat.com Subject: Re: [rfc] ``pc'' -> resume_addr? References: <3CB5F437.30607@cygnus.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-04/txt/msg00462.txt.bz2 > Hello, > > GDB, in a number of places, refers to the ``pc'' - PC_REGNUM, frame->pc, read_pc(), write_pc(), ... > > I think this name choice was unfortunate. It is too easy for a developer to confuse ``pc'' with the hardware ``pc''. > > With this in mind, I'd like to propose a GDBspeak ``resume_addr''. It is the address of the first instruction that will be executed when the target resumes. > > thoughts? better names? > Andrew To follow this up. My take on this is: The real culprit is DECR_PC_AFTER_BREAK. That needs to be eliminated. If that goes, much of the PC confusion will go with it. Me trying to rename ->pc is like applying window dressing :-) Secondary to this, there is read_pc() vs PC_REGNUM. (At the risk of starting another debate :-) Perhaphs, I should rename PC_REGNUM to HW_PC_REGNUM (same for FP and SP and PSW). That way it is clear that these regnum's can only map onto hardware registers. enjoy, Andrew