This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
Re: fortran/1474: incomplete type
- From: chastain at sourceware dot org
- To: chastain at sourceware dot org, gdb-prs at sources dot redhat dot com, goldenmai at hotmail dot com, nobody at sources dot redhat dot com
- Date: 5 Dec 2003 02:41:45 -0000
- Subject: Re: fortran/1474: incomplete type
- Reply-to: chastain at sourceware dot org, chastain at sourceware dot org, gdb-prs at sources dot redhat dot com, goldenmai at hotmail dot com, nobody at sources dot redhat dot com, gdb-gnats at sources dot redhat dot com
Synopsis: incomplete type
Responsible-Changed-From-To: unassigned->chastain
Responsible-Changed-By: chastain
Responsible-Changed-When: Fri Dec 5 02:41:45 2003
Responsible-Changed-Why:
I'll take it.
State-Changed-From-To: open->feedback
State-Changed-By: chastain
State-Changed-When: Fri Dec 5 02:41:45 2003
State-Changed-Why:
Hello,
gdb 4.17 is too old to support. Please upgrade your gdb version to gdb 5.3 or gdb 6.0.
I tried your test program on native i686-pc-linux-gnu with the following versions:
gdb 5.2, gdb 5.2.1, gdb 5.3, gdb 6.0
g77 2.95.3, g77 3.3.2
-gdwarf-2 and -gstabs+
All these configurations worked for me. "print substr" printed the correct result, and "ptype substr" said that its type is "character (5)".
It's not clear whether your "f77" command is the GNU Fortran-77 compiler or perhaps someone else's Fortran-77 compiler. If it's the GNU compiler, then you can see the compiler version with:
f77 --version
If it's not the GNU FORTRAN compiler, you'll have to do something else to find out the compiler version.
If it's GNU FORTRAN, please upgrade the compiler to a later version, such as 2.95.3 or 3.3.2.
Then upgrade your gdb to a later version, such as gdb 5.3 or gdb 6.0.
If the bug still occurs with more recent software, then I'll really need that compiler version number. Also typing "ptype substr" in gdb would help in figuring out the bug.
Michael C
GDB QA Guy
http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=1474