• 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: How to Inspect Method/Function Args Under GCC 4.2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How to Inspect Method/Function Args Under GCC 4.2
      • From: Clark Cox <email@hidden>
References: 
 >How to Inspect Method/Function Args Under GCC 4.2 (From: Keary Suska <email@hidden>)
 >Re: How to Inspect Method/Function Args Under GCC 4.2 (From: Ken Thomases <email@hidden>)
 >Re: How to Inspect Method/Function Args Under GCC 4.2 (From: Keary Suska <email@hidden>)
 >Re: How to Inspect Method/Function Args Under GCC 4.2 (From: Gideon King <email@hidden>)

  • Prev by Date: Re: Generating a parseable #include dependency graph from a project?
  • Next by Date: Re: How to Inspect Method/Function Args Under GCC 4.2
  • Previous by thread: Re: How to Inspect Method/Function Args Under GCC 4.2
  • Next by thread: Re: How to Inspect Method/Function Args Under GCC 4.2
  • Index(es):
    • Date
    • Thread