bug-gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can't Print Two Dimensional Array Element for Fortran


From: lyle lyle
Subject: Can't Print Two Dimensional Array Element for Fortran
Date: Sun, 28 Mar 2010 22:50:38 -0500

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

Attachment: aa.f
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]