This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
no such vector element
- From: Mathew Yeates <mat dot yeates at gmail dot com>
- To: gdb at sourceware dot org
- Date: Mon, 23 Aug 2010 13:54:18 -0700
- Subject: no such vector element
I am getting this error when I try and access a fortran array.
>p Opt_depth_ref_per_band(2,2)
no such vector element
Opt_depth_ref_per_band is an array with 4 rows and 74 columns.
It is declared as
real, intent(out), dimension(NBAND, Num_mixture) :: &
Opt_depth_ref_per_band
Where NBAND is a constant and Num_mixture is an argument to the subroutine.
I can print values by using x/f on the array address.
Any ideas?
-Mathew