• 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: Xcode Debugger Showing Wrong File
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode Debugger Showing Wrong File


  • Subject: Re: Xcode Debugger Showing Wrong File
  • From: Rua Haszard Morris <email@hidden>
  • Date: Mon, 10 Dec 2007 09:52:52 +1300

"ERROR: No debug map or DWARF data was found to link."

Note that the above error also occurs when a project is just relinked and no files need compiling (i.e. no source files have changed since last build), so you can still get that error when things are all set up correctly. (I consider this a "quirky gcc feature", some might call it a bug)

On Dec 7, 2007, at 2:10 PM, Steve Sisak wrote:

At 4:32 PM -0800 12/6/07, Jim Ingham wrote:
It should find the dwarf "debug map" in the x86 fork of your Universal binary, and make a dSYM from that, ignoring the empty ppc side. But, IIRC, the original version of dsymutil would error out if there was a binary - or fork of a Universal binary - that has no dwarf. The Xcode 3.0 version just gives a warning and continues to the other forks. I know this fix went into the 3.0 dsymutil, I don't remember whether it is in the 2.5 version...

I'll give 2.5 a try and report back -- I'm running 2.4.1 at the moment (trying not to change _too_ many variables at once).


Note also, you don't have to make a dSYM file for ordinary development. If you choose the DWARF rather than the DWARF with dSYM option, then we leave the debug info in the .o files - which makes linking faster. Doing this will for sure work even though you use gcc-3.3 for the ppc side. You only need to make the dSYM file if you want to store your debug information - either so you can give a debug build to a colleague, or so you can come back and symbolicate a released build after the release. But for day-to-day iterative development, you can use "dwarf", rather than dwarf-with- dsym.

Right. Also, I realized after hitting "send" on the last message, that I can just use 4.0 for the debug builds and do a one-off if I have to debug something on < 10.3.9.


Having a .dSYM saved for a given release that went out the door seems like a good thing.

Thanks a lot for the explanations.

-Steve
_______________________________________________
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

_______________________________________________ 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: 
 >Xcode Debugger Showing Wrong File (From: Steve Sisak <email@hidden>)
 >Re: Xcode Debugger Showing Wrong File (From: Steve Sisak <email@hidden>)
 >Re: Xcode Debugger Showing Wrong File (From: Chris Espinosa <email@hidden>)
 >Re: Xcode Debugger Showing Wrong File (From: Jim Ingham <email@hidden>)
 >Re: Xcode Debugger Showing Wrong File (From: Steve Sisak <email@hidden>)
 >Re: Xcode Debugger Showing Wrong File (From: Jim Ingham <email@hidden>)
 >Re: Xcode Debugger Showing Wrong File (From: Steve Sisak <email@hidden>)
 >Re: Xcode Debugger Showing Wrong File (From: Jim Ingham <email@hidden>)
 >Re: Xcode Debugger Showing Wrong File (From: Steve Sisak <email@hidden>)

  • Prev by Date: Re: shift-command-R, cool but...
  • Next by Date: Re: Leaks question
  • Previous by thread: Re: Xcode Debugger Showing Wrong File
  • Next by thread: Nice Fixes in Xcode 3: Scripting and Product Permissions
  • Index(es):
    • Date
    • Thread