This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/17905] allocated arrays not visible with gdb
- From: "burnus 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 Dec 2007 22:48:29 -0000
- Subject: [Bug fortran/17905] allocated arrays not visible with gdb
- References: <bug-17905-8277@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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