[lldb-dev] LLDB /w Windows and MinGW64
Zachary Turner via lldb-dev
lldb-dev at lists.llvm.org
Mon Mar 28 08:10:46 PDT 2016
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.
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
On Sun, Mar 27, 2016 at 10:29 PM Eran Ifrah via lldb-dev <
lldb-dev at lists.llvm.org> wrote:
> I have built LLDB on Windows 7 using MinGW64/4.9.2 (took some effort to
> get the job done...)
> When I tried to debug a simple hello world executable, I get this output:
> (lldb) target create "HelloWorld.exe"
> Current executable set to 'HelloWorld.exe' (x86_64).
> (lldb) b main.cpp:7
> Breakpoint 1: where = HelloWorld.exe`main + 26 at main.cpp:7, address =
> (lldb) r
> error: process launch failed: unable to locate lldb-server
> I can't seem to locate lldb-server anywhere, and according
> to LLDBConfig.cmake, this target should not get built on Windows:
> # Figure out if lldb could use lldb-server. If so, then we'll
> # ensure we build lldb-server when an lldb target is being built.
> if ((CMAKE_SYSTEM_NAME MATCHES "Darwin") OR
> (CMAKE_SYSTEM_NAME MATCHES "FreeBSD") OR
> (CMAKE_SYSTEM_NAME MATCHES "Linux") OR
> (CMAKE_SYSTEM_NAME MATCHES "NetBSD"))
> set(LLDB_CAN_USE_LLDB_SERVER 1)
> set(LLDB_CAN_USE_LLDB_SERVER 0)
> and in the tools/CMakeLists.txt file we have this:
> if (LLDB_CAN_USE_LLDB_SERVER)
> Any ideas?
> Eran Ifrah,
> Author of
> , a cross platform open source C/C++ IDE: http://www.codelite.org
> CodeLite IDE Blog: http://codeliteide.blogspot.com/
> lldb-dev mailing list
> lldb-dev at lists.llvm.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the lldb-dev