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]

[Bug fortran/9395] cannot access allocatable array in fortran90


http://sourceware.org/bugzilla/show_bug.cgi?id=9395

Marcial <marcialcz at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marcialcz at gmail dot com

--- Comment #16 from Marcial <marcialcz at gmail dot com> ---
Does not work either on gdb7.4 as x86_64-apple-darwin10.8.0 but! 

Steven Vancoillie has found a way around this that may be useful. He explains
in his blog:    
http://numericalnoob.blogspot.mx/2012/08/fortran-allocatable-arrays-and-pointers.html 

he basically does this:

real, allocatable :: variableName(:)
allocate(variableName(4))
variableName = (/1,2,3,4/)
...
(gdb) p *((real*) variableName)@4
$1 = (1,2,3,4)

(gdb) p *((real*) variableName + 2)
$2 = 3

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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