This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Support x86 pseudo registers


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]