Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: debug universal binary on 10.3?



I temporarily commented out the code that was causing the dyld errors. Apparently this was caused because I have references to Address Book and bindings constants available only on 10.4. So now I can get my app to launch on the remote machine and load into the debugger. But every time I try to set a breakpoint I get this:

mi_cmd_break_insert: Unknown option ``l''
Unable to set breakpoint  . Make sure to build the file   with debugging symbols.

any ideas what might be causing this?

TR

On May 25, 2006, at 11:38 AM, Todd Ransom wrote:

I set it up according to this article:

http://developer.apple.com/documentation/DeveloperTools/Conceptual/XcodeUserGuide/Contents/Resources/en.lproj/06_07_db_remote_debug/chapter_45_section_1.html#//apple_ref/doc/uid/TP40002704-CEGDDHBH

So I have ssh setup with dsa keys and I copied the build directory from my dev machine to the 10.3 machine, accessible at the same path on both.

I modified my Development configuration to produce a Universal binary. Zerolink is off. When I attempt to debug I get prompted for ssh credentials and then I get this in the debugging console:

*****************************************
dyld: /Users/kinch/devel/builds/Development/Montage.app/Contents/MacOS/Montage Undefined symbols:
/Users/kinch/devel/builds/Development/Montage.app/Contents/MacOS/Montage undefined reference to _NSValueTransformerNameBindingOption expected to be defined in Cocoa
/Users/kinch/devel/builds/Development/Montage.app/Contents/MacOS/Montage undefined reference to _kABHomePageLabel expected to be defined in AddressBook
/Users/kinch/devel/builds/Development/Montage.app/Contents/MacOS/Montage undefined reference to _kABURLsProperty expected to be defined in AddressBook
Program received signal:  "SIGTRAP".
dyld: /Users/kinch/devel/builds/Development/Montage.app/Contents/MacOS/Montage dead lock (dyld operation attempted in a thread already doing a dyld operation)
*****************************************

TR

On May 25, 2006, at 9:56 AM, Chris Espinosa wrote:


On May 25, 2006, at 8:39 AM, Todd Ransom wrote:

I have a universal binary built with xcode 2.3 that is exhibiting a double free bug only on Panther (10.3). I would like to load it into the debugger so I can figure out what is going on but the last version of xcode that will run on 10.3 is 1.5, which means I cannot even load my xcodeproj file.

I have tried to setup remote debugging in xcode but that didn't work.

This should be the focus of your problem.  Tell us how you set it up and what happened, and we can help you get it working.  Remote debugging is pretty much the only way to get a 2.1-and-later project to debug visually in 10.3.

So I tried loading the application under the version of gdb that shipped with xcode 1.5 and that gave me a bunch of DYLD errors and crashed.

Did you use the same executable that ran (but exhibited the double-free bug) earlier? Or did you build a different debugging version and copy it over in order to debug? If the latter, you may have to rebuild with "Enable ZeroLink" turned off in the Build menu in order to get a portable debuggable binary.

Chris

 _______________________________________________
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:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

References: 
 >debug universal binary on 10.3? (From: Todd Ransom <email@hidden>)
 >Re: debug universal binary on 10.3? (From: Chris Espinosa <email@hidden>)
 >Re: debug universal binary on 10.3? (From: Todd Ransom <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.