This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
gdb/1474: incomplete type
- From: goldenmai at hotmail dot com
- To: gdb-gnats at sources dot redhat dot com
- Date: 3 Dec 2003 19:24:06 -0000
- Subject: gdb/1474: incomplete type
- Reply-to: goldenmai at hotmail dot com
>Number: 1474
>Category: gdb
>Synopsis: incomplete type
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed Dec 03 19:28:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: goldenmai@hotmail.com
>Release: GNU gdb 4.17
>Organization:
>Environment:
the operating system verson: AIX demoibm 3 4 001690134C00
the compiler version: f77 (sorry, can't find out)
This GDB was configured as "powerpc-ibm-aix4.1.5.0"
>Description:
<incomplete type> for character variable
for fortran code, gdb seems have problem with displaying character variable, or maybe none integer vairiables, with gdb command print.
all the executed conmmands please refer to the attechment
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/plain; name="bugreport.txt"
Content-Disposition: inline; filename="bugreport.txt"
demoibm:/tmp_mnt/vdsk/projekte.d/mao/programmer/ddd/fortran-test>gdb sample
GNU gdb 4.17
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "powerpc-ibm-aix4.1.5.0"...
(gdb) lsit
Undefined command: "lsit". Try "help".
(gdb) list
1 PROGRAM sample
2
3 c FILENAME: f_main.f
4
5 c PROGRAM sample
6 IMPLICIT NONE
7
8 REAL p1_x, p1_y, p2_x, p2_y
9 character*5 substr
10
(gdb)
11 p1_x = 0.0
12 p1_y = 0.0
13 p2_x = 3.0
14 p2_y = 4.0
15 substr='testi'
16 write(6,*) 'p1_x=',p1_x
17 write(6,*) 'p2_x=',p2_x
18 write(6,*) 'summe=',p1_x+p2_x
19 write(6,*) 'substr=',substr
20 c END
(gdb)
21 END PROGRAM sample
22
(gdb) b 19
Breakpoint 1 at 0x5ac: file ./sample.F, line 19.
(gdb) run
Starting program: /tmp_mnt/vdsk/projekte.d/mao/programmer/ddd/fortran-test/sample
Breakpoint 1 at 0x100005ac: file ./sample.F, line 19.
"/usr/lib/libxlf90.a": not in executable format: File format not recognized.
(gdb) step
Single stepping until exit from function __start,
which has no line number information.
sample () at ./sample.F:11
11 p1_x = 0.0
(gdb) continue
Continuing.
p1_x= 0.0000000000E+00
p2_x= 3.000000000
summe= 3.000000000
Breakpoint 1, sample () at ./sample.F:19
19 write(6,*) 'substr=',substr
(gdb) p p1_x
$1 = 0
(gdb) p p2_x
$2 = 3
(gdb) p substr
$3 = <incomplete type>
(gdb) step
substr=testi
21 END PROGRAM sample
(gdb) step
Program exited normally.
(gdb) p substr
No symbol "substr" in current context.
(gdb)