Re: Variable length arrays in debugger
Re: Variable length arrays in debugger
- Subject: Re: Variable length arrays in debugger
- From: Tverdokhleb Andrey <email@hidden>
- Date: Wed, 1 Oct 2008 12:16:42 -0700
Jim,
On Oct 1, 2008, at 11:41 , Jim Ingham wrote:
gcc doesn't emit any debug information that tells the size of
variable length arrays. If you think about it a bit, it would be
kind of hard to express, for instance you could do:
void
foo (int input)
{
int size
int array[size];
size += input;
// Now how do I figure out what the size of "array" is?
}
It's irrelevant what size it has as long as type is known. They deal
with this all the time when resolve pointers to heap allocated arrays
in debugger views - just display it as an 'unlimited' array.
&array also has to be available. Showing it as 'out of scope' is a
plain bug in my opinion and doesn't look like a tough one so far.
Andrey
_______________________________________________
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