This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] mips, eabi64, addr_bit == 32
- From: Daniel Jacobowitz <drow at false dot org>
- To: Michael Snyder <msnyder at redhat dot com>
- Cc: brobecker at adacore dot com, GDB Patches <gdb-patches at sources dot redhat dot com>, fnf at specifix dot com
- Date: Wed, 31 May 2006 19:34:51 -0400
- Subject: Re: [RFA] mips, eabi64, addr_bit == 32
- References: <447E25F0.3010009@redhat.com>
On Wed, May 31, 2006 at 04:25:36PM -0700, Michael Snyder wrote:
> Disagreement between gcc and gdb about the size of an addr
> causes numerous dwarf2-related complaints of the form:
>
> (gdb) advance foo^M
> foo (a=dwarf2_read_address: Corrupted DWARF expression.^M
> ) at
> /opt/redhat/gnupro-06r1-1/sources/tools/cross/gdb/testsuite/gdb.base/advan\ce.c:6^M
> 6 int b = a + 10;^M
> (gdb) FAIL: gdb.base/advance.exp: advance function called as param
>
> 2006-05-31 Michael Snyder <msnyder@redhat.com>
>
> * mips-tdep.c (mips_gdbarch_init): EABI64, addr_bit is 32.
Wasn't Fred just looking at this? Jim posted a better solution,
that needed to be updated to current sources.
Setting addr_bit to 32 is incorrect, addresses have 64 bits on this
target. It's the use of TARGET_ADDR_BIT in the dwarf reader that's
wrong.
--
Daniel Jacobowitz
CodeSourcery