This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB 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]

[Bug fortran/11104] New: gdb 7.0 does not print two dimensional Fortran arrays correctly.


I was not able to find how to find the triplets requested when running on a
Gentoo Linux system.  Running uname -a gives
Linux mon 2.6.32-gentoo #1 SMP Thu Dec 3 13:59:59 PST 2009 x86_64 AMD
Opteron(tm) Processor 242 AuthenticAMD GNU/Linux

Try this Fortran code
====
      program test
c   Testing gdb for printing arrays
      double precision C(4,4)
      do J = 1, 4
        do I = 1, 4
          C(I,J) = dble(I+J)
        end do
      end do
      print '(''C(1,1), C(4,4):'', 1P, 2E12.5)', C(1,1), C(4,4)
      stop
      end
======
gfortran -ggdb -o test test.f
gdb test
b 9
r
p c(1,2)

And I get

no such vector element

-- 
           Summary: gdb 7.0 does not print two dimensional Fortran arrays
                    correctly.
           Product: gdb
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: at_gdb at mathalacarte dot com
                CC: gdb-prs at sourceware dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=11104

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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