I'm the main Windows maintainer, and while We've gotten things working pretty well on Windows, our effort has been 100% on building with msvc and/or clang-cl. Building with mingw has a different set of pre processor defines and some other subtle differences, so it doesn't surprise me that things don't work quite right.<br><br>You can try getting lldb-server to build and run under Windows, or you can try to get it to use the non lldb server codepath on MinGW, but you may still run into some issues after that as well, since you're the first person afaik to try building with MinGW <br><div class="gmail_quote"><div dir="ltr">On Sun, Mar 27, 2016 at 10:29 PM Eran Ifrah via lldb-dev <<a href="mailto:lldb-dev@lists.llvm.org">lldb-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><div class="gmail_default" style="color:rgb(0,0,0)">Hi,</div><div class="gmail_default" style="color:rgb(0,0,0)"><br></div><div class="gmail_default" style="color:rgb(0,0,0)">I have built LLDB on Windows 7 using MinGW64/4.9.2 (took some effort to get the job done...)</div><div class="gmail_default" style="color:rgb(0,0,0)">When I tried to debug a simple hello world executable, I get this output:</div><div class="gmail_default" style="color:rgb(0,0,0)"><br></div><div class="gmail_default" style="color:rgb(0,0,0);font-family:arial,sans-serif"><div class="gmail_default"><font face="monospace, monospace">D:\software\msys-for-clang\1.0\home\PC\build-release-64-lldb\bin>lldb.exe HelloWorld.exe</font></div><div class="gmail_default"><font face="monospace, monospace">(lldb) target create "HelloWorld.exe"</font></div><div class="gmail_default"><font face="monospace, monospace">Current executable set to 'HelloWorld.exe' (x86_64).</font></div><div class="gmail_default"><font face="monospace, monospace">(lldb) b main.cpp:7</font></div><div class="gmail_default"><font face="monospace, monospace">Breakpoint 1: where = HelloWorld.exe`main + 26 at main.cpp:7, address = 0x000000000040154a</font></div><div class="gmail_default"><font face="monospace, monospace">(lldb) r</font></div><div class="gmail_default"><font face="monospace, monospace">error: process launch failed: unable to locate lldb-server</font></div><div class="gmail_default"><font face="monospace, monospace">(lldb)</font></div></div><div class="gmail_default" style="color:rgb(0,0,0)"><br></div><div class="gmail_default" style="color:rgb(0,0,0)">I can't seem to locate lldb-server anywhere, and according to LLDBConfig.cmake, this target should not get built on Windows:</div><div class="gmail_default" style="color:rgb(0,0,0)"><br></div><div class="gmail_default" style="color:rgb(0,0,0);font-family:arial,sans-serif"><div class="gmail_default"><font face="monospace, monospace"># Figure out if lldb could use lldb-server. If so, then we'll</font></div><div class="gmail_default"><font face="monospace, monospace"># ensure we build lldb-server when an lldb target is being built.</font></div><div class="gmail_default"><font face="monospace, monospace">if ((CMAKE_SYSTEM_NAME MATCHES "Darwin") OR</font></div><div class="gmail_default"><font face="monospace, monospace"> (CMAKE_SYSTEM_NAME MATCHES "FreeBSD") OR</font></div><div class="gmail_default"><font face="monospace, monospace"> (CMAKE_SYSTEM_NAME MATCHES "Linux") OR</font></div><div class="gmail_default"><font face="monospace, monospace"> (CMAKE_SYSTEM_NAME MATCHES "NetBSD"))</font></div><div class="gmail_default"><font face="monospace, monospace"> set(LLDB_CAN_USE_LLDB_SERVER 1)</font></div><div class="gmail_default"><font face="monospace, monospace">else()</font></div><div class="gmail_default"><font face="monospace, monospace"> set(LLDB_CAN_USE_LLDB_SERVER 0)</font></div><div class="gmail_default"><font face="monospace, monospace">endif()</font></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">and in the tools/CMakeLists.txt file we have this:</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default"><div class="gmail_default"><font face="monospace, monospace">if (LLDB_CAN_USE_LLDB_SERVER)</font></div><div class="gmail_default"><font face="monospace, monospace"> add_subdirectory(lldb-server)</font></div><div class="gmail_default"><font face="monospace, monospace">endif()</font></div><div style="font-family:verdana,sans-serif"><br></div><div style="font-family:verdana,sans-serif"><br></div></div></div><div class="gmail_default" style="color:rgb(0,0,0)">Any ideas?</div><div class="gmail_default" style="color:rgb(0,0,0)"><br></div><div class="gmail_default" style="color:rgb(0,0,0)">Thanks,</div><div style="margin:2px 0px 0px;color:rgb(0,0,0);font-family:arial,sans-serif;font-size:16px"><div><br></div></div></div>-- <br><div><div dir="ltr"><font face="verdana, sans-serif">Eran Ifrah,<br>Author of <div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;display:inline">CodeLite</div>, a cross platform open source C/C++ IDE: <a href="http://www.codelite.org" target="_blank">http://www.codelite.org</a><br></font><div><font face="verdana, sans-serif">CodeLite IDE Blog: <a href="http://codeliteide.blogspot.com/" target="_blank">http://codeliteide.blogspot.com/</a></font></div></div></div>
</div>
_______________________________________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@lists.llvm.org" target="_blank">lldb-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev</a><br>
</blockquote></div>