[lldb-dev] Using LLDB API on windows

Russell Greene via lldb-dev lldb-dev at lists.llvm.org
Tue Apr 4 07:50:23 PDT 2017

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.


On Tue, Apr 4, 2017, 8:12 AM Eli Zaretskii <eliz at gnu.org> wrote:

> > Date: Tue, 04 Apr 2017 03:00:21 +0000
> > From: Zachary Turner via lldb-dev <lldb-dev at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20170404/593ee499/attachment.html>

More information about the lldb-dev mailing list