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

fiveight fiveight at tom.com
Thu Oct 25 00:07:19 PDT 2012


Nikola Smiljanic!

	I have get mingw 4.6.2 and try it with Clang 3.2 <trunk 166546>. 

	I build Clang with VS2008, and compile main.c with "clang.exe -target i386-pc-mingw32 -g main.c -o main.exe".

	But when I debug main.exe by GDB 6.8, I still get info "DW_FORM_strp pointing outside of .debug_str section".

	http://llvm.org/bugs/show_bug.cgi?id=13636 bug report refers to the same problem.

	Does this bug will be fixed in Clang 3.2 release?

	

======= 2012-10-24 12:34:04 您在来信中写道:=======

>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.
>

= = = = = = = = = = = = = = = = = = = =
			

        致
礼!
 
				 
        fiveight
        fiveight at tom.com
          2012-10-25





More information about the cfe-dev mailing list