Re: Breakpoint on arbitrary selector
Re: Breakpoint on arbitrary selector
- Subject: Re: Breakpoint on arbitrary selector
- From: daniel <email@hidden>
- Date: Wed, 26 Jan 2005 19:30:39 -0800
For anybody following along, there is a minor correction to make to
Mike's excellent advice below.
The "-A" option to grep requires an integer to specify how many lines
of context to display. In this case, it looks like 3 is the right
number to ask for if you want to see the method_imp entry:
otool -ov <binaryname> | grep -A 3 <methodName>
Thanks again, Mike!
Daniel
On Jan 26, 2005, at 5:35 PM, Mike Bolton wrote:
For example, to find the address of the method
"addAppointment:", you can do something like this: "otool -ov
<binaryname> | grep -A addAppointment:". You'll then see something
like "method_imp 0x00008518". You can then set a breakpoint in gdb on
this address.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden