This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] DWARF 2 address size != pointer size
On Fri, May 12, 2006 at 09:51:02PM +0200, Mark Kettenis wrote:
> > From: Fred Fish <fnf@specifix.com>
> > Date: Wed, 10 May 2006 14:24:10 -0400
> >
> > For at least one target, MIPS using the o64 ABI with -mlong64, the
> > target DWARF2 address size used in the DWARF info (32 bit) is not the
> > same as the target pointer size (64 bit).
>
> Unbelievable. As if there aren't enough ABI's for MIPS yet. But how
> can this work? If the pointers are really 64-bit, how can they be
> encoded in the 32-bit DWARF2 adresses?
[Mark, I just got a delayed bounce from your procmail for an earlier
message. Let's see if I get another...]
It's a code model thing. It has 64-bit pointers, but all symbols are
32-bit, and IIRC it actually uses 32-bit ELF.
> I think introducing TARGET_DWARF_ADDR_BIT is a mistake if the debug
> info already encodes the info.
I do too.
--
Daniel Jacobowitz
CodeSourcery