Re: Shark, Optimizations, Source, LLVM-GCC 4.2
Re: Shark, Optimizations, Source, LLVM-GCC 4.2
- Subject: Re: Shark, Optimizations, Source, LLVM-GCC 4.2
- From: Wade Tregaskis <email@hidden>
- Date: Mon, 06 Jul 2009 16:02:48 -0700
If I create a new project and change the compiler to llvm-gcc 4.2,
and turn optimizations up to anything but -O0, then Shark doesn't
show the source code. Changing from DWARF to Stabs doesn't do
anything, and neither does any other setting I've tried.
Under the same circumstances, the debugger also fails to break on
any breakpoints. GCC 4.0/4.2 work fine, but LLVM-GCC 4.2 *with*
optimizations on, does not.
At a glance it looks like llvm-gcc is simply not spitting out most of
the debug info we need. I can't even get it to work properly even
with -O0 on my machine. All the other tools are similarly affected,
as you note.
Note that you can kind of beat Shark around the head with it by
manually symbolicating your binary again, which will make Shark show
the source info (at least in some cases), but the break down by source
line will be bogus, and the mapping of assembly to source won't work
for large portions of your code. So, probably useless.
You should definitely file a bug report, and send me the bug number.
Wade
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden