This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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]

Re: gdb can't read dwarf-2 multidimensional array parameters


I'll give the vla branch a try but it seems to be addressing variable
length arrays. This isn't my case. Mine are fixed length.

-Mathew

On Mon, Sep 27, 2010 at 11:45 AM, Tobias Burnus <burnus@net-b.de> wrote:
> ?Hi Mathew,
>
> Mathew Yeates wrote:
>>
>> gdb-7.2 has troubles determining ?the shape of fortran
>> multidimensional arrays. Is it possible that gfortran is writing these
>> values out incorrectly? It looks like the "upper_bound" value is
>> undefined.
>
> While it is possible, it is more likely that you hit a case which is not yet
> implemented in GDB. You could try to use a GDB build which contains Jan
> Kratochvil's patches such as Fedora's GDB (or openSUSE's). The patch is also
> available via GIT, cf. http://sourceware.org/gdb/wiki/ArcherBranchManagement
> and in particular Jan's -vla branch and Jan's fedora14 branch.
>
> Note: The VLA branch fixes most issues with arrays, in particular the new
> deferred/assumed-shape arrays [i.e. array bounds of the type "(:, :)"] but
> at least until recently there were cases when also the the branch did not
> properly work. If you have Intel's idb at hand, you could also try to use it
> with gfortran-compiled programs.
>
> Tobias
>


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