<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On May 10, 2012, at 10:26 PM, Nick Lewycky wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Dan Gohman wrote:<blockquote type="cite">Modified: llvm/trunk/docs/LangRef.html</blockquote><blockquote type="cite">+<h5>Semantics:</h5><br></blockquote><blockquote type="cite">+<p>This intrinsic is lowered to code which is intended to cause an execution<br></blockquote><blockquote type="cite">+   trap with the intention of requesting the attention of a debugger.</p><br></blockquote><br>... but no other effect? Is that how it's different from @llvm.trap, that if there is no debugger, the program continue running normally?<br></div></blockquote><div><br></div><div>The main difference is that on x86 it generates int3, rather than ud2.  Perhaps I</div><div>tried to hard to make the language generic.</div><div><br></div><blockquote type="cite"><div><blockquote type="cite"><font class="Apple-style-span" color="#000000"><br></font></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">+    // DEBUGGER - Trap intented to get the attention of a debugger.<br></blockquote><br>Typo "intented"<br></div></blockquote></div><div><br></div>Thanks, I'll fix it.<br><div><br></div><div>Dan</div><div><br></div></body></html>