[LLVMdev] [patch] DwarfDebug problem with line section
jonas.maebe at elis.ugent.be
Mon Aug 23 22:43:26 PDT 2010
On 24 Aug 2010, at 02:36, Devang Patel wrote:
> On Tue, Aug 17, 2010 at 7:09 AM, Jonas Maebe <jonas.maebe at elis.ugent.be>wrote:
>> At least that's what I learned when I looked at what GCC and GNU AS
>> generated, and changing them into offsets (I tried that in our
>> compiler) results in GDB not understanding the debug information.
> AFAICT, GCC in darwin uses offset here.
> Using absolute address breaks
> debugger on darwin.
Yes, I know. Our compiler has a target flag indicating whether a target requires offsets or absolute addresses for the address of the abbreviation table and the DW_AT_stmt_list. It's actually more complex than I wrote in my previous mail:
* Darwin uses a precomputed offset via the construct
* Windows uses a secrel32 symbol (so it's also relative):
* Linux and FreeBSD use an absolute address:
I don't know about other OSes.
More information about the llvm-dev