[LLVMdev] [PATCH]: DwarfWriter fix
Argiris Kirtzidis
akyrtzi at gmail.com
Mon Jun 16 23:32:47 PDT 2008
Anton Korobeynikov wrote:
> 2. It can be, that debug information emitted is not correct. This is
> known open problem.
>
The attached patch fixes the problem with the line information.
For the "AT_stmt_list" attribute of the compilation unit entry, DWARF-2
specification says:
> A DW_AT_stmt_list attribute whose value is a reference to line number
> information for
> this compilation unit.
> This information is placed in a separate object file section from the
> debugging information
> entries themselves. The value of the statement list attribute is the
> offset in the
> .debug_line section of the first byte of the line number information
> for this compilation
> unit
DwarfWriter was using a label reference (instead of a section offset)
and it was causing a problem because Windows treats
section offsets differently, by emitting the ".secrel32" directive.
-Argiris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dwarf-fix.patch
Type: text/x-diff
Size: 4761 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080616/5df6ecbd/attachment.patch>
More information about the llvm-dev
mailing list