From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25670 invoked by alias); 4 Nov 2005 19:09:39 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 25644 invoked by uid 22791); 4 Nov 2005 19:09:34 -0000 Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 04 Nov 2005 19:09:34 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id jA4J9WgV025187 for ; Fri, 4 Nov 2005 14:09:32 -0500 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id jA4J9VV13030; Fri, 4 Nov 2005 14:09:31 -0500 Received: from [172.16.24.50] (bluegiant.sfbay.redhat.com [172.16.24.50]) by potter.sfbay.redhat.com (8.12.8/8.12.8) with ESMTP id jA4J9S3P031905; Fri, 4 Nov 2005 14:09:29 -0500 Message-ID: <436BB1E7.10907@redhat.com> Date: Fri, 04 Nov 2005 19:09:00 -0000 From: Michael Snyder User-Agent: Mozilla Thunderbird (X11/20050322) MIME-Version: 1.0 To: gdb@sources.redhat.com CC: mysea000@163.com Subject: Re: who can explain the pseudo-registers and its mechanism to me?thanks Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2005-11/txt/msg00114.txt.bz2 "ayang" wrote: > hello, > I am puzzled by the the pseudo-registers and its mechanism when I > read the gdb source.It is not described in gdbint.who can explain the > pseudo-registers and its mechanism to me?thanks. Pseudo-registers are fake registers that do not exist (at least as represented) on the target. The basic distinction is that gdb fetches the values of "real" registers from the target, but computes or composes the values of "pseudo" registers locally. An example might be a double-wide pseudo-register that is composed from the values of two ordinary registers. GDB fetches the values of the two ordinary registers, but then combines them to produce the value of the pseudo-register. If a user changes the value of the pseudo-register, it may be necessary for gdb to change the target values from which the pseudo-register was composed.