<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 19, 2015 at 12:22 AM, Javier Múgica <span dir="ltr"><<a href="mailto:javier_3@runbox.com" target="_blank">javier_3@runbox.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello:<br>
<br>
I am facing a critic problem with the compiler, which I hope will have an easy solution. I am using it on Windows and use Visual Studio to debug the applications. The information of which source lines correspond to which machine instructions is right and I can break into the code, execute one instruction at a time, etc. But all the information regarding the variables is missing, so I cannot know the values they store if not by guessing upon the assembly code where is stored each variable and asking VS to show me the value of, say, **(double**)(esp+01Ch).<br>
<br>
I have tried both clang and clang-cl, and both -O0 and -O1, and both VS 2010 and VS 2015. I use clang with the -c option (do not link), and then call the VS linker, which is what clang does if the -c option is not used.<br>
<br>
The Microsoft compiler generates an intermediate .pdb file when compiling and assemblying, named vc100.pdb (the name is of course irrelevant), and afterwards, when linking, the definite pdb file, foo.pdb for instance. When using clang the intermediate file is not generated. May that be the reason or has it nothing to do with my problem?<br></blockquote><div><br>That's the reason, but there is no easy solution - Clang does not generate PDB files at the moment. The debug story on windows is still uncertain and a fair way out - it may entail integrating something like LLDB into MSVC to use the existing DWARF debug info Clang can produce.<br><br>For now you could use LLDB directly on windows, though I think support there is still work-in-progress too.<br><br>Sorry,<br><br>- David<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Lest's hope you can help me, otherwise I will have to stop using clang just when I was beginning with it.<br>
<br>
-- Javier<br>
<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br></div></div>