xcode - How do I debug through system libraries on OS X? -


I'm debugging a cocoa app, which calls system libraries. I get debug symbols for my code, but not the system library, which stops me further debugging

I use GDB to compile against 10.5 SDK on 10.6.4 (GCC 4.2) I am doing

Here Stak-

  (gdb) CFQSortArray # 0 0x93713e43 bt () # 1 (in 0x936f4c49 CFArraySortValues) # 2 0x958f0bc0 (in ColorSyncProfileCopyTagSignatures in CMMProfile in) # 3 0x9591d218: trace I want to get the symbols are :: use removable () # 4 0x9591cb5d (in DoValidateProfile) CMSValidateProfile validateProfile # 5 0x9591cc75 AppleCMMValidateProfile (in ColorSyncProfileVerify in) # 6 0x958f1e52 () # 7 0x91b13b88 (made) # 8 0x91b13aed () # CGCMSInterfaceValidateProfile 9 0x93b27f6c () # 10 0x93b27f4c CGCMSUtilsValidateProfile () CGColorSpaceCreateICCBased # 11 0x93b27e4b () # 12 0x93b27203 (in create_generic_color_space) + # 13 0x93b26f92 (in CGColorSpaceCreateWithIndex in the) # 14 0x90228ad5 [NSColorSp ace specialColorSpaceWithID:] in (# 15 0x90228a0c) in + [NSColorSpace genericRGBColorSpace] () [NSBitmapImageRep _bitmapImageRe - in # 16 0x9022881e p_setColorSpaceName:] () # 17 in 0x904f6e39 - [NSBitmapImageRep initWithBitmapDataPlanes: pixelsWide: pixelsHigh: bitsPerSample: samplesPerPixel: hasAlpha: isPlanar: colorSpaceName: bitmapFormat: bytesPerRow: bitsPerPixel:] () # 18 in 0x902282ae - [NSBitmapImageRep _initWithSharedBitmap: rect:] () # 19 0x90227efe in - [NSImage _addRepresentationSharedKitWindow: rect:] () [NSImage _findSystemImageNamed in # 20 0x90226d06 +: ] () # 21 0x90226a48 + [NSImage imageNamed in:] () # of 22 0x902268ea - [NSCustomResource _loadImageWithName:] () # 23 in 0x9022681e - [NSCustomResource loadImageWithName:] () # 24 in 0x90225d5f - [NSCustomResource awakeAfterUsingCoder:] ( ) # 25 0x915a2208 _decodeObjectBinary () # 26 0x915a14e4 _decodeObject () # 27 in 0x9022556f - [ NSMenuItem initWithCoder:] () _decodeObjectBinary # 28 0x915a21ec () in # 29 0x915a2ff8 - [NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] (in # 30 0x915a3665 - [NSArray] initWithCoder:] () # 31 0x915a21ec _decodeObjectBinary () # 32 0x915a14e4 in _dec OdeObject () # 33 0x9022 in 9ff0 - [NSMenu initWithCoder:] () # 34 in 0x915a21ec _decodeObjectBinary () # 35 in 0x915a2ff8 - [NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] () # 36 in 0x915a3665 - [NSArray (NSArray) initWithCoder:] () # 37 0x915a21ec in _decodeObjectBinary () # 38 0x915a14e4 _decodeObject () # 39 in 0x9021ff29 - [NSIBObjectData initWithCoder:] # 40 0x915a21ec in _decodeObjectBinary () # 41 0x915a14e4 _decodeObject () # 42 0x9021f4a8 in loadNib () # 43 0x9021eb5b + NSBundle (NSNibLoading) _loadNibFile: nameTable: withZone: ownerBundle:] () # 44 0x9021e811 + in [NSBundle (NSNibLoading) loadNibF Ile: externalNameTable: withZone:] ()  

This apple is described in the technote, _debug wants to set DYLD_IMAGE_SUFFIX.

See further problems (not the correct version on the right system) which is far from difficult, so I have not tested it.


Comments