<div>Hi all,</div><div>While implementing debug info for our backend, we've noticed a problem with debug_line section. We believe that the following code is wrong:</div><div><br></div><div>// DW_AT_stmt_list is a offset of line number information for this</div>
<div>// compile unit in debug_line section. It is always zero when only one</div><div>// compile unit is emitted in one object file.</div><div>addUInt(Die, dwarf::DW_AT_stmt_list, dwarf::DW_FORM_data4, 0);</div><div><br>
</div>
<div>After compiling several files and linking them together (not only using our backend, but also x86) debug information was incorrect.</div><div>I'm not 100% sure if this fix is correct, but patch attached.</div><div>
<br></div><div>Artur</div><div><br></div>