[Lldb-commits] [lldb] [LLDB] Handle i686 mingw32 mangling prefix (PR #160930)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Fri Sep 26 12:14:24 PDT 2025


Michael137 wrote:

> I'm no real MinGW user, and I couldn't find documentation on the mangling used there, so I relied on examples. The mangled names on i686 mingw32 do have two underscores. From [this comment on an old patch](https://reviews.llvm.org/D22939#500090), it does seem like this is intended. But I can't find where Clang does this. Maybe @mstorsjo knows more?

This is the global prefix I'm talking about: https://github.com/llvm/llvm-project/blob/d2c189bc739c86bea28e9d603f8973f68869a772/llvm/include/llvm/IR/DataLayout.h#L279-L293

Have we not tried creating `Mangled` objects from mingw32 mangled names prior to your reverted patch? I'd be surprised, but maybe it truly is the first time it was required?

But yea, having an example of the mangled names that we get from debug-info on mingw32 would be helpful

https://github.com/llvm/llvm-project/pull/160930


More information about the lldb-commits mailing list