Need to set a breakpoint, say on a Cocoa library function, or something in a shared library you're loading later? Set a "future breakpoint": (gdb) fb -[NSTextView drawRect:]
(gdb) fb -[NSTextView drawRect:]