From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19570 invoked by alias); 12 Apr 2002 00:25:28 -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 19553 invoked from network); 12 Apr 2002 00:25:26 -0000 Received: from unknown (HELO cygnus.com) (205.180.230.5) by sources.redhat.com with SMTP; 12 Apr 2002 00:25:26 -0000 Received: from redhat.com (reddwarf.sfbay.redhat.com [172.16.24.50]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id RAA22034; Thu, 11 Apr 2002 17:25:25 -0700 (PDT) Message-ID: <3CB626A9.F8A10C98@redhat.com> Date: Thu, 11 Apr 2002 17:25:00 -0000 From: Michael Snyder Organization: Red Hat, Inc. X-Accept-Language: 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 Content-Transfer-Encoding: 7bit X-SW-Source: 2002-04/txt/msg00195.txt.bz2 Andrew Cagney wrote: > > 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. Under what circumstances is the address of the first instruction that will be executed different from the hardware pc?