One Quickie

Printing method arguments (gdb->General)
If you've hit a breakpoint on a method that doesn't have debug symbols, you can sometimes get useful information by looking in the processor registers. Arguments start in $r3 and go up from there. For Objective-C method sends, $r3 has 'self', and $r4 has the name of the method. Subsequent arguments are in $5 and so on.
(gdb) print (char*) $r4
$5 = 0x90874160 "drawRect:"

(gdb) po $r5
<BWStitchView: 0x1a6670>

borkware home | products | miniblog | rants | quickies | cocoaheads
Advanced Mac OS X Programming book