<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Apr 13, 2011, at 8:42 AM, Ken Dyck wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>DwarfDebug::emitDebugInfo() always appends four zero bytes to the tail<br>of the debug info section:<br><br> emitDIE(Die);<br> // FIXME - extra padding for gdb bug.<br> Asm->OutStreamer.AddComment("4 extra padding bytes for GDB");<br> Asm->EmitInt8(0);<br> Asm->EmitInt8(0);<br> Asm->EmitInt8(0);<br> Asm->EmitInt8(0);<br> Asm->OutStreamer.EmitLabel(Asm->GetTempSymbol("info_end", TheCU->getID()));<br><br>Does anybody know what the bug is in GDB that this works around? The<br>workaround was added as part of r103439[1], which added support for<br>multiple compilation units in one module. Does the bug ever affect<br>modules with only a single compilation unit?<br><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" color="#144FAE"><br></font></font></div></blockquote><div><br></div>It was not added by r103439. In fact, it was added by r32035.</div><div><br></div><div><a href="http://llvm.org/viewvc/llvm-project?view=rev&revision=32035">http://llvm.org/viewvc/llvm-project?view=rev&revision=32035</a> </div><div><br></div><div>Unfortunately the log message and comments do not provide any hints, and I do not have access to the author anymore.</div><div><br></div><div>-</div><div>Devang</div><div><br></div><div><br><br><blockquote type="cite"><div>-Ken<br><br>[1] <a href="http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20100510/101040.html">http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20100510/101040.html</a><br></div></blockquote></div><br></body></html>