Displaying the value of a reference parameter
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