This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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/17905] New: allocated arrays not visible with gdb


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


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