• 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: Shawn Erickson <email@hidden>
  • Date: Mon, 10 Jan 2005 14:08:07 -0800


On Jan 10, 2005, at 12:23 PM, Kevin Ballard wrote:

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

Not sure that works for todays code... because of PIC / none-PIC, etc.

Still trying to connect the dots.

-Shawn

_______________________________________________
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: Kevin Ballard <email@hidden>
References: 
 >Finding the selector used in calls objc_msgSend in otool output... (From: Shawn Erickson <email@hidden>)
 >Re: Finding the selector used in calls objc_msgSend in otool output... (From: Kevin Ballard <email@hidden>)

  • Prev by Date: Re: MyDocument and NSArrayController
  • Next by Date: Re: Authorization - Perl as helper tool vs. SUID
  • Previous by thread: Re: 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