From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28050 invoked by alias); 2 Mar 2010 21:58:57 -0000 Received: (qmail 28034 invoked by uid 22791); 2 Mar 2010 21:58:56 -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.157) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 02 Mar 2010 21:58:52 +0000 Received: by fg-out-1718.google.com with SMTP id 19so266293fgg.12 for ; Tue, 02 Mar 2010 13:58:50 -0800 (PST) MIME-Version: 1.0 Received: by 10.87.48.11 with SMTP id a11mr225944fgk.36.1267567130103; Tue, 02 Mar 2010 13:58:50 -0800 (PST) In-Reply-To: <20100302215235.GA3894@caradoc.them.org> References: <20100301170152.GA20106@intel.com> <20100302135502.GB16596@caradoc.them.org> <6dc9ffc81003020608s10b76867kc04404a57df45df1@mail.gmail.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> Date: Tue, 02 Mar 2010 21:58:00 -0000 Message-ID: <6dc9ffc81003021358m7db842bcrdac32563a3b46192@mail.gmail.com> Subject: Re: PATCH: Support x86 pseudo registers From: "H.J. Lu" To: Eli Zaretskii , "H.J. Lu" , 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/msg00083.txt.bz2 On Tue, Mar 2, 2010 at 1:52 PM, Daniel Jacobowitz wr= ote: > 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. > Exactly. I can do (top-gdb) disass Dump of assembler code for function main: 0x000000000044ce70 <+0>: sub $0x28,%rsp 0x000000000044ce74 <+4>: movq $0x0,(%rsp) 0x000000000044ce7c <+12>: mov %edi,(%rsp) =3D> 0x000000000044ce7f <+15>: mov %rsp,%rdi 0x000000000044ce82 <+18>: movq $0x0,0x10(%rsp) 0x000000000044ce8b <+27>: mov %rsi,0x8(%rsp) 0x000000000044ce90 <+32>: movq $0x6a6ed0,0x18(%rsp) 0x000000000044ce99 <+41>: callq 0x44ceb0 0x000000000044ce9e <+46>: add $0x28,%rsp 0x000000000044cea2 <+50>: retq End of assembler dump. (top-gdb) p/x $edi $1 =3D 0x1 (top-gdb) p/x $rdi $2 =3D 0x1 (top-gdb) --=20 H.J.