Hi Guys, I write code in Fortran and found that I couldn't print an element's value if the element wasn't in the first column. For example,
There is an array A and its size is 5x3. In gdb, I can get its first column elements' value with the command: p A(1, 1), until A(5, 1), because the array is saved in memory according to columns. However, if I want to get A(1, 2), then gdb showed the error message: no such vector element. I searched online and found that another person had reported this bug, https://bugs.launchpad.net/ubuntu/+source/gdb/+bug/500691. I confirmed that both the version 6.8 and 7.1 had the same problem. I use gfortran 4.4.3, gdb 7.1, and Debian squeeze. Is there a patch for this bug? Can someone help me fix this problem? Thanks a lot, Lyle
program main real a(5, 3) do 12 i=0,4 do 12 j=1,3 a(i+1,j)=i*3+j 12 continue write(*,*)a(2,3) end
_______________________________________________ bug-gdb mailing list bug-gdb@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gdb