<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.E-MailFormatvorlage18
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=DE link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Hey,<o:p></o:p></p><p class=MsoNormal>in order to try lldb on windows, i built (with clang compiler and lld linker (v7.0.1)) llvm, clang, lld and of course lldb from latest source with the following command line:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>> cmake -G Ninja -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_LINKER=lld-link -DLLDB_RELOCATABLE_PYTHON=1 -DLLDB_PYTHON_HOME=“C:\program files\python37“ -DLLVM_BUILD_TESTS=0 -DLLVM_BUILD_BENCHMARKS=0 -DLLVM_BUILD_EXAMPLES=0 -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGET_ARCH=host -DCMAKE_INSTALL_PREFIX=“..\release“ ..\src\llvm<o:p></o:p></p><p class=MsoNormal>>ninja install<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Here my little program i used to test lldb:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>> //main.c<o:p></o:p></p><p class=MsoNormal>> #include <stdio.h><o:p></o:p></p><p class=MsoNormal>><o:p> </o:p></p><p class=MsoNormal>> int a=10;<o:p></o:p></p><p class=MsoNormal>><o:p> </o:p></p><p class=MsoNormal>> int main(int argc, char *argv[]){<o:p></o:p></p><p class=MsoNormal>>             for(int i=0;i<argc;i++){<o:p></o:p></p><p class=MsoNormal>>                           printf("%s\n", argv[i]);<o:p></o:p></p><p class=MsoNormal>>             }<o:p></o:p></p><p class=MsoNormal>>             return(0);<o:p></o:p></p><p class=MsoNormal>> }<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I compiled the above with „clang main.c -glldb -o a.exe“, which generated the executable a.exe and corresponding debug information a.pdb.<o:p></o:p></p><p class=MsoNormal>I launched lldb with „lldb a.exe“ and tried to load the debug information with „target symbols add a.pdb“, however this resulted in „error: symbol file [….]\a.pdb does not match any existing module“.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I am using Windows 10 pro 64bit, my both, my test program and lldb were compiled for x64 target.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I have also tried the prebuilt llvm/lldb binaries (v8.0.0, v7.0.1) found on llvm.org, same result.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I feel like i am missing something (unless lldb just does not work on windows yet).<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>(On a sidenote, compiling with -gdwarf-5 makes clang crash. I can send the debug information clang spits out once my debug build finishes.)<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Greetings<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>