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: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: macro at codesourcery dot com (Maciej W. Rozycki)
- Cc: pinskia at gmail dot com (Andrew Pinski), gdb-patches at sourceware dot org (gdb-patches at sourceware dot org)
- Date: Thu, 28 Aug 2014 13:51:03 +0200 (CEST)
- Subject: Re: [RFC] Use address_from_register in dwarf2-frame.c:read_addr_from_reg
- Authentication-results: sourceware.org; auth=none
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) ...
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU/Linux compilers and toolchain
Ulrich.Weigand@de.ibm.com