[Bug fortran/17905] allocated arrays not visible with gdb
burnus at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Dec 9 22:48:00 GMT 2007
------- Comment #8 from burnus at gcc dot gnu dot org 2007-12-09 22:48 -------
I believe this has been fixed by the patch (PR 22244):
http://gcc.gnu.org/ml/gcc-cvs/2007-12/msg00175.html
Note for gdb you still need the patches from:
http://sourceware.org/ml/gdb-patches/2007-11/msg00438.html
Result with current gfortran and Intel's idb 10.1:
(idb) b test.f90:3
Breakpoint 1 at 0x4008fe: file test.f90, line 3.
(idb) run
INTERNAL ERROR: unexpected address for .text of /dev/shm/a.out
Expected = 0x0000000000600000, actual = 0x0000000000400000, diff =
0xffffffffffe00000
Starting program: /dev/shm/a.out
Breakpoint 1, test () at test.f90:3
3 allocate (array(10))
(idb) next
4 array = 3
(idb) next
5 array(1) = 4
(idb) ptype array
type = INTEGER(4)(10)
(idb) p array
$1 = {3, 3, 3, 3, 3, 3, 3, 3, 3, 3}
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17905
More information about the Gcc-bugs
mailing list