This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Question on variable_size and function-at-a-time


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]