This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Use address_from_register in dwarf2-frame.c:read_addr_from_reg
- From: pinskia at gmail dot com
- To: Ulrich Weigand <uweigand at de dot ibm dot com>
- Cc: "Maciej W. Rozycki" <macro at codesourcery dot com>, "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Thu, 28 Aug 2014 05:37:18 -0700
- Subject: Re: [RFC] Use address_from_register in dwarf2-frame.c:read_addr_from_reg
- Authentication-results: sourceware.org; auth=none
- References: <201408281151 dot s7SBp3HT006739 at d06av02 dot portsmouth dot uk dot ibm dot com>
> 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
>