On Wed, Sep 23, 2009 at 6:59 PM, Graham Cox <graham....@bigpond.com> wrote:
> (gdb) po *(id*)($ebp+4)

Of course this will only work when building i386, not x86_64.

On x86_64, I would break on _LSAcquireIconRefForURL and do `po $rdi`.
Looking at the disassembly, the first thing it does is load a constant
string object (@"_NSURLBindingKey") into $rsi before calling
CFURLCopyResourcePropertyForKey.  If at this point $rdi doesn't point
at a valid CFURL object, it's going to blow up.

--Kyle Sluder
_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to