• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Shark, Optimizations, Source, LLVM-GCC 4.2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Shark, Optimizations, Source, LLVM-GCC 4.2 (From: Seth Willits <email@hidden>)

  • Prev by Date: Shark, Optimizations, Source, LLVM-GCC 4.2
  • Next by Date: PB Newbie Again
  • Previous by thread: Shark, Optimizations, Source, LLVM-GCC 4.2
  • Next by thread: PB Newbie Again
  • Index(es):
    • Date
    • Thread