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] Improve stabs debugging for mingw64 executables loaded at high addresses


On Sep 14, 2010, at 5:24 PM, Pierre Muller wrote:

>>> Comments welcome,
>> 
>> I think that some 64 bits targets have 8 bytes for the address.
> 
> 
>  Of course, dwarf debugging doesn't suffer from this limitation,
> and uses 8-byte for addresses.
>  This is the default format for most 64-bit targets,
> and it is the preferred debugging format for 64-bit
> because of this 4-byte limitation of stabs...
>  So this is really a marginal case that I presented here.

To clarify, I meant that some 64 bits targets have 8 bytes for the address in *stabs*.
(eg: darwin64 - but the use of stabs is deprecated for this target).

OTOH, dbxread.c seems to be bound to 32-bits stabs address.

I am not sure it is right to set objfile->section_offsets->offsets.

>  The thing is that, for Free Pascal, we have lots of
> troubles with DWARF (and some 64-bit specific), 
> thus I would like to be able to use STABS format (which 
> is less troublesome) but that also didn't work
> because of this high address default base used by this compiler.

So, it might be worth fixing Free Pascal too !

Tristan.


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