Re: Getting the arguments of methods in other frameworks (from GDB)
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