Question on variable_size and function-at-a-time

Richard Henderson rth@redhat.com
Wed Apr 21 21:44:00 GMT 2004


On Fri, Apr 16, 2004 at 02:37:37PM -0400, Richard Kenner wrote:
> 	int x;
> 	const int arr_UB0 = x+5;
> 	int arr[arr_UB];
> 
> But now the debugging information will present the upper bound of arr
> as "arr_UB0", which is not meaningful to the user, instead of "x + 5",
> which is.

I disbelieve this is a problem.  Debug info (dwarf2, anyway) doesn't
store the symbolic "x+5" or "arr_UB0"; it stores how to compute the
value.  The only thing that the user should see from the debugger is
"int arr[35]"


r~



More information about the Gcc mailing list