[PATCH] Debug support for Fortran 90 assumed shape and other descriptor using arrays (PR fortran/22244)

Tobias Burnus burnus@net-b.de
Fri Nov 16 12:58:00 GMT 2007


Hi Jakub,

Jakub Jelinek wrote:
> Here is the final version of the patch which fixes a bunch of errors in the
> debuginfo emitted by earlier patch, add supports for DW_AT_associated and
> DW_AT_allocated DWARF3 attributes and also adds support for assumed-size
> arrays.
>   
I applied the GCC patch and tried the example with the Intel Debugger
10. Tested was "a4.f90" of
http://gcc.gnu.org/ml/gcc-patches/2007-11/msg00612.html.

Using ifort10, I get in "baz":

(idb) ptype varx
type = REAL(4)(6)(11)(12)
(idb) p varx
$1 = {{{7, 6, 6, 6, 6, 6}, {6 ...

And using the patched gfortran:

(idb) ptype varx
type = REAL(4)(12)(11)(6)
(idb) p varx
$1 = {{{<no value>, <no value>, <no value>,

I don't know whether this is a deficit in idb or in gcc/gfortran. Note:
Not only does idb show "no value", it has also problems with the array
extent.

Accoding to
http://sources.redhat.com/ml/gdb-patches/2007-11/msg00317.html the
output of patched gcc + patched gdb is:

(gdb) ptype varx
type = real*4 (6,5:15,17:28)
(gdb) p varx
$1 = (( ( 7, 6, 6, 6, 6, 6) ( 6, 6, 6, 6, 6, 6) ( 6, [cut ...]

which is ok.


> Bootstrapped/regtested on i686-linux and ppc64-linux (and x86_64-linux
> bootstrap is pending), ok for trunk?
>   
The Fortran part looks OK.

Tobias



More information about the Fortran mailing list