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]

Re: fortran/2284: gdb v6.6 adresses fortran arrays incorrectly.


The following reply was made to PR fortran/2284; it has been noted by GNATS.

From: Bud Davis <bdavis9659@sbcglobal.net>
To: gdb-gnats@sources.redhat.com
Cc:  
Subject: Re: fortran/2284: gdb v6.6 adresses fortran arrays incorrectly.
Date: Wed, 10 Oct 2007 19:25:33 -0700 (PDT)

  below is gdb6.6 output.
 
 
 if i was to guess, i would say it was a gfortran problem.
 gfortran version used:
 
 gcc version 4.3.0 20071009 (experimental) (GCC) 
 
 
 may i recomend closure with no further action taken ?
 
 --bud davis
 
 
 
 
 
 [bdavis@localhost current]$ gdb a.out
 GNU gdb 6.6
 Copyright (C) 2006 Free Software Foundation, Inc.
 GDB is free software, covered by the GNU General Public License, and you are
 welcome to change it and/or distribute copies of it under certain conditions.
 Type "show copying" to see the conditions.
 There is absolutely no warranty for GDB.  Type "show warranty" for details.
 This GDB was configured as "i686-pc-linux-gnu"...
 Using host libthread_db library "/lib/libthread_db.so.1".
 (gdb) break b.f:4
 Breakpoint 1 at 0x8048245: file b.f, line 4.
 (gdb) run
 Starting program: /home/bdavis/gcc/current/a.out 
 
 Breakpoint 1, MAIN__ () at b.f:4
 4             print *, myarr(1)
 Current language:  auto; currently fortran
 (gdb) p myarr
 $1 = (1, 2, 3, 4, 5, 6, 7, 8, 9, 0)
 (gdb) p myarr(1)
 $2 = 1
 (gdb) p myarr(2)
 $3 = 2
 (gdb) p myarr(10)
 $4 = 0
 


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