From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11299 invoked by alias); 11 Apr 2002 20:58:53 -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 11286 invoked from network); 11 Apr 2002 20:58:50 -0000 Received: from unknown (HELO cygnus.com) (205.180.230.5) by sources.redhat.com with SMTP; 11 Apr 2002 20:58:50 -0000 Received: from romulus.sfbay.redhat.com (romulus.sfbay.redhat.com [172.16.27.251]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id NAA01751; Thu, 11 Apr 2002 13:58:48 -0700 (PDT) Received: (from kev@localhost) by romulus.sfbay.redhat.com (8.11.6/8.11.6) id g3BKwVC03556; Thu, 11 Apr 2002 13:58:31 -0700 Date: Thu, 11 Apr 2002 13:58:00 -0000 From: Kevin Buettner Message-Id: <1020411205831.ZM3555@localhost.localdomain> In-Reply-To: Andrew Cagney "[rfc] ``pc'' -> resume_addr?" (Apr 11, 4:38pm) References: <3CB5F437.30607@cygnus.com> To: Andrew Cagney , gdb@sources.redhat.com Subject: Re: [rfc] ``pc'' -> resume_addr? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-04/txt/msg00174.txt.bz2 On Apr 11, 4:38pm, Andrew Cagney wrote: > 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''. Could you please explain further why you think the name choice was unfortunate? > 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. So, if I understand you correctly, you're suggesting the following renaming: PC_REGNUM ==> RESUME_ADDR_REGNUM frame->pc ==> frame->resume_addr read_pc() ==> read_resume_addr() write_pc() ==> write_resume_addr() Perhaps I've just gotten fond of ``pc'', but I don't really like any of these. Kevin