> On Nov 7, 2014, at 12:35 PM, Jerry Krinock <je...@ieee.org> wrote: > >> On 2014 Nov 07, at 14:14, Greg Parker <gpar...@apple.com> wrote: >> >> Which frame are you in when you try to read the register (the top frame, or >> some other frame)? > > Some other. #11 in this call stack: > > #0 in strlen () > #1 in strdup () > #2 in objc_class::nameForLogging() () > #3 in cache_t::bad_cache(objc_object*, objc_selector*, objc_class*) () > #4 in objc_msgSend_corrupt_cache_error () > #5 in safeARCWeaklyStore () > #6 in -[NSMenuItem setTarget:] () > #7 in -[NSMenuItem copyWithZone:] () > #8 in -[NSSearchFieldCell(NSSearchFieldCell_Local) _updateSearchMenu] () > #9 in __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ () > #10 in _CFXNotificationPost () > #11 in -[NSNotificationCenter postNotificationName:object:userInfo:] () > #12 in -[SSYSearchField appendToRecentSearches:] at SSYSearchField.m:53 > #13 in -[CntntViewController search:] at /CntntViewController.m:351 > #14 in -[BkmxDocWinCon search:] at BkmxDocWinCon.m:2907 > > I’d like to know what is the notification name, object and userInfo that > Cocoa is trying to post.
There's no way to get that information at that point. Those values are no longer in the machine's parameter registers. It is sometimes possible for the debugger to track down where those values are now, but at best it requires debug info for all frames from there to the top of the stack. You don't have debug info for CF or AppKit so there is no trail for the debugger to follow in this stack trace. You may have better luck tracing it from the other side. Run to that line in appendToRecentSearches:, set a breakpoint on -[NSNotificationCenter postNotificationName:object:userInfo:], and step over your line. At those breakpoints you should be able to see the notification parameters in the parameter registers, assuming the notification is sent every time that line runs. -- Greg Parker gpar...@apple.com Runtime Wrangler _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com