Re: How to Inspect Method/Function Args Under GCC 4.2
Re: How to Inspect Method/Function Args Under GCC 4.2
- Subject: Re: How to Inspect Method/Function Args Under GCC 4.2
- From: Keary Suska <email@hidden>
- Date: Mon, 15 Mar 2010 19:33:01 -0600
On Mar 15, 2010, at 5:48 PM, Gideon King wrote:
> So what's the equivalent for a 64 bit app?
The following is a quote from an email by Clark Cox. Apparently, 64 bit uses a certain set of registers. Easier to remember, for sure.
$rdi -> arg0 (self)
$rsi -> arg1 (_cmd)
$rdx -> arg2
$rcx -> arg3
$r8 -> arg4
$r9 -> arg5
>>>>
>>>> (gdb) po *(id*)($ebp + 8)
>>>> Argument to arithmetic operation not a number or boolean.
>>>>
>>>> Is there some new trickery needed now?
>>>
>>> I doubt it. I suspect you're unintentionally running a 64-bit (x86_64) build rather than a 32-bit (i386) build. The above expression only makes sense for i386.
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden