<div>As far as I know LLVM still does not generate proper unwind info for Windows x64. I did some work on this and posted some patches a couple months ago, please see <a href="http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20120827/149407.html">http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20120827/149407.html</a></div>

<br>It needs more testing.<br><br><div class="gmail_quote">On Tue, Apr 2, 2013 at 3:13 PM, Andrew MacPherson <span dir="ltr"><<a href="mailto:andrew.macp@gmail.com" target="_blank">andrew.macp@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi,<br><br>I'm wondering about the status of Windows x64 unwind info in LLVM. We're trying to print a simple stack trace on Windows exceptions, including function names of JITted code (which we can roughly derive using addresses from a JITEventListener). While this works fine in 32-bit mode, we're unable to properly walk the stack in 64-bit since the unwind info doesn't seem to be present for JITted functions.<br>




<br></div>It looks like there is code to generate the unwind info in lib/MC/MCWin64EH.cpp but it's not clear that this is still in use. This post from last fall seems to indicate that EH code for Win64 may have been removed from the old JIT engine (which we are currently using):<br>




<div><br><a href="http://lists.cs.uiuc.edu/pipermail/llvmdev/2012-November/056204.html" target="_blank">http://lists.cs.uiuc.edu/pipermail/llvmdev/2012-November/056204.html</a><br><br></div><div>Should Windows x64 unwind info currently exist for code emitted using either the old JIT or the new MCJIT?<br>




<br>Thanks,<br>Andrew<br></div><div><br></div></div>
<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Joćo Matos