Well I would guess the main problem is lldb being compiled in a msys environment which I guess lldb recognizes to be so posix to try and launch lldb-server. The results I gave you are from the mingw-w64-x86_64-lldb package in msys2.
Pretty sure mingw and msvc have different ABIs though (at least for C++) they have completely different name mangling algos. -Russell On Tue, Apr 4, 2017, 8:12 AM Eli Zaretskii <e...@gnu.org> wrote: > > Date: Tue, 04 Apr 2017 03:00:21 +0000 > > From: Zachary Turner via lldb-dev <lldb-dev@lists.llvm.org> > > > > As the person who added most of the support for debugging Windows > executables, I can tell you that I never > > tested a MinGW executable (nor was it one of my original goals). It > doesn't entirely surprise me that things are > > behaving this way, but I'm not sure what the exact cause would be off > the top of my head. MinGW executables > > and msvc Win32 executables use an entirely different ABI, so I would > exepct the non lldb-server path to be a > > little wonky since I always assumed MSVC ABI in my implementation. > > Are you sure you are talking about MinGW and not Cygwin or MSYS? > Because MinGW executables are native Win32 programs, so much so that > you can load MSVC DLLs from a MinGW program and vice versa. > > Or maybe I don't understand what you mean by "ABI". > > I did try debugging MinGW-compiled executables with lldb, and it did > work for me, FWIW. > > Apologies if by "MinGW" this thread means MSYS/MSYS2. MSYS is a fork > of Cygwin, and yes, it uses a different ABI, which attempts to emulate > a Posix system on top of Windows. >
_______________________________________________ lldb-dev mailing list lldb-dev@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev