<div dir="ltr">I don't think either lib.exe or llvm-lib care about /debug. It shouldn't do anything.<div><br></div><div>Make sure /Zi or /Z7 is getting through to clang-cl during the compile step, and make sure /DEBUG is getting through to link.exe in the link step. This should allow function stepping in windbg or VS.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Nov 21, 2015 at 11:37 AM, justin chase via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</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">This is all on Windows.<div><br></div><div>I think I need to pass "/DEBUG":<div><a href="https://msdn.microsoft.com/en-us/library/xe4t6fc1.aspx" target="_blank">https://msdn.microsoft.com/en-us/library/xe4t6fc1.aspx</a><br></div><div><br></div><div>When compiling via llvm-lib:</div><div><div><a href="http://llvm.org/docs/CommandGuide/llvm-lib.html" target="_blank">http://llvm.org/docs/CommandGuide/llvm-lib.html</a></div><div><br></div><div>However, it seems like llvm-lib doesn't know about this flag and I can't seem to figure out how to get it to do the equivalent.</div><div><br></div><div>Basically when I am attempting to debug, I have a pdb and it is loading symbol information but it does not contain file or line number information and I can only step into functions as assembly.</div><div><br></div><div>I am compiling some code into objects, then into a .lib, then linking with clang-cl that lib plus more objects. When I do this I am unable to step into any of my code though I can see the function names in the callstack. <br><br>I am trying to set /DEBUG with calls to llvm-lib and I am setting the flags /Md /Zi /DEBUG when calling clang-cl. Am I missing something?<span class="HOEnZb"><font color="#888888"><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><a href="http://justinmchase.com" target="_blank">http://justinmchase.com</a></div></div></div>
</font></span></div></div></div></div>
<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div>