Re: PATCH: Support x86 pseudo registers

H.J. Lu
2010-03-02T22:07:49Z

On Tue, Mar 2, 2010 at 1:59 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Tue, Mar 2, 2010 at 1:57 PM, Michael Snyder <msnyder@vmware.com> wrote:
>> Daniel Jacobowitz wrote:
>>>
>>> On Tue, Mar 02, 2010 at 11:47:35PM +0200, Eli Zaretskii wrote:
>>>>
>>>> Who can help out here?  I 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).  Yes?
>>
>
> Yes.
>
> (top-gdb) info reg $edi
> edi            0x1      1
> (top-gdb) info reg $rdi
> rdi            0x1      1
> (top-gdb) info reg $dl
> dl             0xd8     -40
> (top-gdb) info reg $dil
> dil            0x1      1
> (top-gdb)
>
>

Basically, you can access any byte/word/dword registers, as shown
in assembly code, the same way as word/dword registers.

--
H.J.