This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
Re: Expressions Estimates
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Sami Wagiaalla <swagiaal at redhat dot com>
- Cc: archer at sourceware dot org
- Date: Sat, 4 Oct 2008 22:37:45 +0200
- Subject: Re: Expressions Estimates
- References: <48DD4175.2090908@redhat.com>
On Fri, 26 Sep 2008 22:09:25 +0200, Sami Wagiaalla wrote:
> * gdb does not understand variable length arrays
> (gdb) list
> 1
> 2 int main(){
> 3 int n = 5;
> 4
> 5 int array[n++];
> 6 int array2[n++];
> 7 int array3[5];
> 8 return 0;
> 9 }
> (gdb) print array3
> $1 = {0, -1078038600, 134513881, 5127397, 3825652}
> (gdb) print sizeof array3
> $2 = 20
> (gdb) print array2
> $3 = 0x607ff4
> (gdb)
>
> Estimate [one month]
In fact done (it requires also new GCC - PR debug/34037):
http://people.redhat.com/jkratoch/vla/fortran-dynamic-arrays-HEAD-b.patch
Review of its first part is now on ongoing gdb-patches:
http://sourceware.org/ml/gdb-patches/2008-10/msg00111.html
Regards,
Jan