Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Displaying the value of a reference parameter



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:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.