This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Question on variable_size and function-at-a-time
- From: Richard Henderson <rth at redhat dot com>
- To: Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>
- Cc: zack at codesourcery dot com, gcc at gcc dot gnu dot org
- Date: Fri, 16 Apr 2004 14:41:39 -0700
- Subject: Re: Question on variable_size and function-at-a-time
- References: <10404161837.AA17944@vlsi1.ultra.nyu.edu>
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~