From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20857 invoked by alias); 2 Mar 2010 22:07:49 -0000 Received: (qmail 20835 invoked by uid 22791); 2 Mar 2010 22:07:48 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40 X-Spam-Check-By: sourceware.org Received: from fg-out-1718.google.com (HELO fg-out-1718.google.com) (72.14.220.153) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 02 Mar 2010 22:07:44 +0000 Received: by fg-out-1718.google.com with SMTP id 19so268976fgg.12 for ; Tue, 02 Mar 2010 14:07:41 -0800 (PST) MIME-Version: 1.0 Received: by 10.87.40.18 with SMTP id s18mr1059727fgj.7.1267567661616; Tue, 02 Mar 2010 14:07:41 -0800 (PST) In-Reply-To: <6dc9ffc81003021359h15250892q139c4cac09d5cb88@mail.gmail.com> References: <20100301170152.GA20106@intel.com> <20100302150446.GB20342@caradoc.them.org> <838waa4nj1.fsf@gnu.org> <6dc9ffc81003021101yf91df69nddd08a824f777641@mail.gmail.com> <83y6ia30nc.fsf@gnu.org> <6dc9ffc81003021306s7cf79ef5n1069d8dcc994a3c6@mail.gmail.com> <83vdde2y6g.fsf@gnu.org> <20100302215235.GA3894@caradoc.them.org> <4B8D89CD.5050700@vmware.com> <6dc9ffc81003021359h15250892q139c4cac09d5cb88@mail.gmail.com> Date: Tue, 02 Mar 2010 22:07:00 -0000 Message-ID: <6dc9ffc81003021407l27b513cbm288d1fd1e43d0c46@mail.gmail.com> Subject: Re: PATCH: Support x86 pseudo registers From: "H.J. Lu" To: Michael Snyder Cc: Eli Zaretskii , gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-03/txt/msg00086.txt.bz2 On Tue, Mar 2, 2010 at 1:59 PM, H.J. Lu wrote: > On Tue, Mar 2, 2010 at 1:57 PM, Michael Snyder wrote: >> Daniel Jacobowitz wrote: >>> >>> On Tue, Mar 02, 2010 at 11:47:35PM +0200, Eli Zaretskii wrote: >>>> >>>> Who can help out here? =A0I can help with wording, if someone tells the >>>> story. >>> >>> Presumably H. J. knows why he wrote the patch? >>> >>> I presume it lets us say $ah or $ax in addition to $eax, and lets $eax >>> work on 64-bit systems where we really have $rax. >> >> Mmm hmm, and the context would be expressions or anywhere where a >> register name is appropriate (eg. info reg). =A0Yes? >> > > Yes. > > (top-gdb) info reg $edi > edi =A0 =A0 =A0 =A0 =A0 =A00x1 =A0 =A0 =A01 > (top-gdb) info reg $rdi > rdi =A0 =A0 =A0 =A0 =A0 =A00x1 =A0 =A0 =A01 > (top-gdb) info reg $dl > dl =A0 =A0 =A0 =A0 =A0 =A0 0xd8 =A0 =A0 -40 > (top-gdb) info reg $dil > dil =A0 =A0 =A0 =A0 =A0 =A00x1 =A0 =A0 =A01 > (top-gdb) > > Basically, you can access any byte/word/dword registers, as shown in assembly code, the same way as word/dword registers. --=20 H.J.