Re: gdb objc_msgSend: trace messages
Re: gdb objc_msgSend: trace messages
- Subject: Re: gdb objc_msgSend: trace messages
- From: Jason Harris <email@hidden>
- Date: Sat, 29 Mar 2003 15:24:02 -0700
You can get the selector using
x /s $r4
The target object is in $r3.
Jason
Seth Delackner Tried to Tell Me:
>
Google knows that in the olden NeXT days, this was possible:
>
>
(gdb) b objc_msgSend
>
Breakpoint 2 at 0x5002230
>
(gdb) comm 2
>
printf "%c[%s %s]\n",(((*((**(int***)($sp+4))+4))&2)?'+':'-'),
>
(char*)(*((**(int ***)($sp+4))+2)),(char*)sel_getName(*(int*)($sp+8))
>
>
And you would see the full output like:
>
-[Object message:]
>
>
I never used NeXT, but I tried this on OS X, and while the second argument (to
>
generate the object or class name) still works, the argument to sel_getName
>
produces gibberish.
>
>
Anyone know the answer to what goes in sel_getName(mystery) ?
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.