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


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

dharenberg at ethz dot ch changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dharenberg at ethz dot ch

--- Comment #19 from dharenberg at ethz dot ch ---
Workaround/ partial solution

I had the same problem with this version:
$ gdb -version
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04

But not with the version that came with the intel compiler:
$ gdb-ia -version
No symbol table is loaded.  Use the "file" command.
GNU gdb (GDB) 7.5-1.0.160

However, in both versions, when the allocatable array is a component of a
derived type, then the problem essentially reappears. An easy workaround for
this case is to use the ASSOCIATE construct:
associate(my_array => this%allocatable_array)

Then I can see the contents of my_array, but not of this%allocatable_array.

I am a beginner, so I do all this in Eclipse, where it works by setting the
Debugger to gdb-ia in the launch configuration properties (given that you have
the Intel compiler installed). 

I guess this partially confirms comment 17 by sagovic.

-- 
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]