• 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
Displaying the value of a reference parameter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Displaying the value of a reference parameter


  • Subject: Displaying the value of a reference parameter
  • From: Steve Sisak <email@hidden>
  • Date: Sun, 27 Nov 2005 14:32:57 -0500

I have a series of functions that take a reference to a size_t as a parameter:

OSStatus CalcSomeSize(void* someParam, size_t& size)
{
    size += sizeof(Foo)

    return noErr;
}

When I'm in these functions, the Xcode debugger displays the size parameter as "@0xbfffe4bc" (address of the size_t) but refuses to display the value, making debugging the computation rather difficult.

If I change the parameter to size_t*, I can see the value and get work done, but this is clearly undesirable from an architectural standpoint.

Is this just a gdb bug/limitation or is there a way to get Xcode to display the value of reference parameters?

TIA,

-Steve
_______________________________________________
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: Displaying the value of a reference parameter
      • From: Chris Espinosa <email@hidden>
  • Prev by Date: Re: Use native precompilation checkbox oddity
  • Next by Date: Re: Cannot link project checkedout from an SVN repository
  • Previous by thread: Re: Use native precompilation checkbox oddity
  • Next by thread: Re: Displaying the value of a reference parameter
  • Index(es):
    • Date
    • Thread