gdb objc_msgSend: trace messages
gdb objc_msgSend: trace messages
- Subject: gdb objc_msgSend: trace messages
- From: Seth Delackner <email@hidden>
- Date: Sat, 29 Mar 2003 20:59:39 +0000
- Mail-followup-to: email@hidden
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.