Re: Displaying the value of a reference parameter
Re: Displaying the value of a reference parameter
- Subject: Re: Displaying the value of a reference parameter
- From: Chris Espinosa <email@hidden>
- Date: Mon, 28 Nov 2005 08:07:22 -0800
On Nov 27, 2005, at 11:32 AM, Steve Sisak wrote:
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?
It's not a gdb limitation; if you go to the console and 'p size' it
says:
$1 = (size_t&) @0xbffe4bc: 1
(or whatever the value of size is)
Open the Expressions window, and enter (size_t)size as the expression.
And file a bug.
Chris
_______________________________________________
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