• 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: Getting the arguments of methods in other frameworks (from GDB)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting the arguments of methods in other frameworks (from GDB)


  • Subject: Re: Getting the arguments of methods in other frameworks (from GDB)
  • From: Dave Hayden <email@hidden>
  • Date: Tue, 13 Dec 2005 14:32:01 -0800

On Dec 12, 2005, at 12:34 PM, email@hidden wrote:

As an example in : -[NSNotificationCenter postNotificationName:object:userInfo:]
I want to get the args passed to this method, but I cant... even with the debug version of appkit.

On PPC machines, you can find everything in the registers: r3 contains the "self" pointer, r4 is the current selector (as a SEL, which is a char*), and the arguments are stored in r5 and up. So here, you could do "po $r5" in gdb to get the selector name or "po $r7" to see the userInfo dict.

Is that what you're asking, or something else?

-Dave
Panic, Inc.

_______________________________________________
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: Getting the arguments of methods in other frameworks (from GDB)
      • From: Andre <email@hidden>
References: 
 >Getting the arguments of methods in other frameworks (from GDB) (From: email@hidden)

  • Prev by Date: NSTextView/NSTextField forgetting to wordwrap?
  • Next by Date: Re: Shadowed text view
  • Previous by thread: Getting the arguments of methods in other frameworks (from GDB)
  • Next by thread: Re: Getting the arguments of methods in other frameworks (from GDB)
  • Index(es):
    • Date
    • Thread