[cfe-dev] An executable produced by clang can not be debuggedwith gdb under Windows

Nikola Smiljanic popizdeh at gmail.com
Tue Oct 23 21:34:04 PDT 2012


On Wed, Oct 24, 2012 at 2:27 PM, fiveight <fiveight at tom.com> wrote:
> Yes I mean that I use "-target i386-pc-mingw32" option to use Mingw headers and ABI.

I only saw the "clang.exe main.c -g -o main.exe" command, you forgot
to mention the triple. So we can probably rule this out since you're
using the right triple.

> But I don't think this gdb debug problem is about mingw.

Me neither.

> I think it is clang's problem.

You're probably right, but as I said, there were some issues with
clang + mingw 4.7 combo. Try mingw 4.6.2 if it's not too much of a
problem for you. I never managed to get clang going with 4.7, and
haven't really bothered again.



More information about the cfe-dev mailing list