• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Breakpoint on arbitrary selector
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Re: Breakpoint on arbitrary selector (From: Mike Bolton <email@hidden>)

  • Prev by Date: Re: Breakpoint on arbitrary selector
  • Next by Date: placeholder text in NSTextView
  • Previous by thread: Re: Breakpoint on arbitrary selector
  • Next by thread: Creating file packages
  • Index(es):
    • Date
    • Thread