• 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: Finding the selector used in calls objc_msgSend in otool output...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding the selector used in calls objc_msgSend in otool output...


  • Subject: Re: Finding the selector used in calls objc_msgSend in otool output...
  • From: Kevin Ballard <email@hidden>
  • Date: Mon, 10 Jan 2005 15:23:21 -0500

There's an interesting little article called Building a better otool that builds up a script that uses otool and basically does all the lookups for you and inserts comments telling you what the selectors are.

http://www.afront.be/lib/bot1.html
http://www.afront.be/lib/bot2.html

On Jan 10, 2005, at 2:10 PM, Shawn Erickson wrote:

I am wonder if anyone knows of good tricks to use to relatively quickly understand what selector is being used in a call to objc_msgSend. For example given the following otool -toV output how can I figure out what selector is being used?

I assume the 0xfd4 is an memory offset to a table selectors, and 0x9c68 is an offset to the selector in question. Just missing out of the expected location of that table and how to view it via otool.

930b4b24	addis	r4,r31,0xfd4
930b4b28	or	r5,r3,r3
930b4b2c	lwz	r4,0x9c68(r4)
930b4b30	or	r3,r25,r25
930b4b34	bl	0x931f1208	; symbol stub for: _objc_msgSend

-- Kevin Ballard email@hidden http://www.tildesoft.com http://kevin.sb.org

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

  • Follow-Ups:
    • Re: Finding the selector used in calls objc_msgSend in otool output...
      • From: Shawn Erickson <email@hidden>
References: 
 >Finding the selector used in calls objc_msgSend in otool output... (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: I don't know where to ask...
  • Next by Date: Re: I don't know where to ask...
  • Previous by thread: Finding the selector used in calls objc_msgSend in otool output...
  • Next by thread: Re: Finding the selector used in calls objc_msgSend in otool output...
  • Index(es):
    • Date
    • Thread