Re: Interpreting GDB Stack Frames
Re: Interpreting GDB Stack Frames
- Subject: Re: Interpreting GDB Stack Frames
- From: Ken Thomases <email@hidden>
- Date: Sun, 01 Jan 2012 10:21:09 -0600
Please don't cross-post.
On Jan 1, 2012, at 9:26 AM, Ayers, Joseph wrote:
> I have a program crashing loading a NIB that isn't explicitly specified. The call frame is below From the call frame it looks like it's called in line 8. How do I reveal the name of the nib file?
Probably you should just look at the implementation of -[RoboplasmAppDelegate showMediaWindow:]. From the sound of it, it probably does little more than instantiate an NSWindowController, passing in the NIB name, and then call -showWindow: on it.
> 0 CoreFoundation 0x00007fff8c551286 __exceptionPreprocess + 198
> 1 libobjc.A.dylib 0x00007fff8a88dd5e objc_exception_throw + 43
> 2 CoreFoundation 0x00007fff8c5510ba +[NSException raise:format:arguments:] + 106
> 3 AppKit 0x00007fff86982490 _NSValueOfClassWithSpecialSpecificErrorMessage + 245
> 4 AppKit 0x00007fff8698206c -[NSArrayDetailBinder _refreshDetailContentInBackground:] + 691
> 5 AppKit 0x00007fff86718a0f -[NSObject(NSKeyValueBindingCreation) bind:toObject:withKeyPath:options:] + 591
> 6 AppKit 0x00007fff86711d25 -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] + 1079
> 7 AppKit 0x00007fff8670833b loadNib + 322
> 8 AppKit 0x00007fff86707834 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] + 217
> 9 AppKit 0x00007fff8670774f +[NSBundle(NSNibLoading) loadNibFile:externalNameTable:withZone:] + 141
> 10 AppKit 0x00007fff868f6134 -[NSWindowController loadWindow] + 221
> 11 AppKit 0x00007fff868f5eef -[NSWindowController window] + 75
> 12 AppKit 0x00007fff868f5d5d -[NSWindowController showWindow:] + 40
> 13 Roboplasm 0x00000001000178bc -[RoboplasmAppDelegate showMediaWindow:] + 92
> 14 Roboplasm 0x0000000100017046 -[RoboplasmAppDelegate awakeFromNib] + 166
> 15 CoreFoundation 0x00007fff8c5482e1 -[NSObject performSelector:] + 49
> 16 CoreFoundation 0x00007fff8c548262 -[NSSet makeObjectsPerformSelector:] + 274
> 17 AppKit 0x00007fff86711dcb -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] + 1245
> 18 AppKit 0x00007fff8670833b loadNib + 322
> 19 AppKit 0x00007fff86707834 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] + 217
> 20 AppKit 0x00007fff8670774f +[NSBundle(NSNibLoading) loadNibFile:externalNameTable:withZone:] + 141
> 21 AppKit 0x00007fff86707692 +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 364
> 22 AppKit 0x00007fff8697a8eb NSApplicationMain + 398
> 23 Roboplasm 0x0000000100009772 main + 34
> 24 Roboplasm 0x00000001000018c4 start + 52
> )
> terminate called throwing an exception(gdb) info args f 8
> self = (RoboplasmAppDelegate *) 0x101a0a430
> _cmd = (SEL) 0x10007400d
> sender = (id) 0x101a0a430
This doesn't seem to correspond to frame 8, above. Frame 8 shows a class method called on (a category on) NSBundle. So, the self parameter would not be a RoboplasmAppDelegate*.
Have you perhaps shown data from two different debugging sessions, which don't match?
Regards,
Ken
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden