This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/17905] New: allocated arrays not visible with gdb
- From: "bdavis at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Oct 2004 08:41:15 -0000
- Subject: [Bug fortran/17905] New: allocated arrays not visible with gdb
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
see the example below along with gdb error.
$ cat g.f90
program test
integer,dimension(:),allocatable :: array
allocate (array(10))
array(10000000)=8
end
$ gfc g.f90
$ gdb a.out
GNU gdb 6.2.1
Copyright 2004 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/tls/libthread_db.so.1".
(gdb) break g.f90:3
Breakpoint 1 at 0x80481f8: file g.f90, line 3.
(gdb) run
Starting program: /home/bdavis/a.out
Breakpoint 1, MAIN__ () at g.f90:3
3 allocate (array(10))
Current language: auto; currently fortran
(gdb) whatis array
type = Invalid type code (3) in symbol table.
more info :
http://gcc.gnu.org/ml/fortran/2004-10/msg00069.html
--
Summary: allocated arrays not visible with gdb
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bdavis at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17905