This is the mail archive of the archer@sourceware.org mailing list for the Archer 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: Expressions Estimates


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


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