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 3/3] Handle ILP32 AARCH64 correctly for gdbserver


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?

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.

> 
> Tested using gdbserver with an ILP32 program and even
> tested using gdbserver as an ILP32 program.
> 

Thanks,
Pedro Alves


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