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: [RFC] Use address_from_register in dwarf2-frame.c:read_addr_from_reg



> On Aug 28, 2014, at 4:51 AM, "Ulrich Weigand" <uweigand@de.ibm.com> wrote:
> 
> Maciej W. Rozycki wrote:
>>> On Wed, 27 Aug 2014, Ulrich Weigand wrote:
>>> I guess it isn't too hard to support gdbarch_convert_register_p in that
>>> routine as well; I just didn't have any target to test on.
>>> 
>>> Can you try whether something along the following lines works for you?
>> 
>> I'll see if I can push it through testing, though it may take a few days 
>> as some of MIPS hardware I use (and especially 64-bit one) is slooow (and 
>> I already have a test run under way).
> 
> Thanks!
> 
>> I'd expect the issue to be consistent across all ILP32 64-bit ABIs BTW, 
>> that is e.g. x32 x86-64 as well.
> 
> Well, I guess that depends on whether the hardware expects 32-bit pointer
> values to be sign-extended when loaded in 64-bit registers or not.  I don't
> think x32 x86-64 requires this sign-extension (but I'm certainly not an
> expert here) ...

Both x32 and ilpl32 on arrch64 have zero-extended pointers so it should not be an issue with those two abis, only mips64's n32. 

Thanks,
Andrew

> 
> Bye,
> Ulrich
> 
> -- 
>  Dr. Ulrich Weigand
>  GNU/Linux compilers and toolchain
>  Ulrich.Weigand@de.ibm.com
> 


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