This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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 3/3] Handle ILP32 AARCH64 correctly for gdbserver


On Wed, Aug 31, 2016 at 11:42 AM, Pedro Alves <palves@redhat.com> wrote:
> On 08/30/2016 01:25 AM, Andrew Pinski wrote:
>> In gdbserver, we need to send over 32bit registers
>> for pc/sp instead of 64bit as we do right now.
>> So we need another XML file for ILP32.
>
> Why do we need to do that?  The raw, architecture register
> is still 64-bit, right?
>

I want to ask the same... ILP32 is an ABI, it shouldn't affect the
review to architecture register.

> Sounds to me that if you want to present a 32-bit pc to the user, then
> gdb should handle this, via a pseudo register, similarly to how
> x32 sends 64-bit rip, and then gdb shows a 32-bit pc.   Mips does
> something like this too, to a larger extent, see mips_register_name.
>

Why do we need to present a 32-bit pc to the user?  It is 64-bit, and
I expect a 64-bit value is shown.

-- 
Yao (齐尧)


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