g77-gdb
Joachim Hussong
joachim.hussong@dlr.de
Fri Oct 29 00:46:00 GMT 1999
Hi,
I've problems with debugging g77-code with gdb. After reading the
bug stuff of your home page I know that it's known that g77 and
gdb are not working together properly . Toon Moene (I think he is
known) said I should report my problems.
I hope this is the right address to do this! I found no hint to a gdb
bug report address.
SUMMARY:
Accessing *arrays with gdb leads to a segmentation fault. This
leads to crashes of graphical front ends like ddd. Hitting the array
msg (see below) with the mouse (by accident) treats a look at the
variable. gdb crashes and ddd stops working because of the lost of
gdb.
ENVIRONMENT:
compiler: g77 version egcs-2.91.60 19981201 (egcs-1.1.1
release) (from FSF-g77 version 0.5.24-19980804)
debugger: gdb 4.18
System information: Linux 2.2.7 #7 i686 unknown
CONTACT INFO
Reported by: Joachim Hussong
joachim.hussong@gmx.de
joachim.hussong@dlr.de
DESCRIPTION:
Running gdb with the program attached below, gdb crashes by
trying to access *MSG.
1) compiling: g77 -g -o test3.x test3.f
2) starting debugger: gdb test3.x
debugging: break 1
run
step
step
print *msg
3) segmentation fault
Processing this on an AIX 4.1.4 with compiler xlf leads to the error
message "attempt to take contents of a non-pointer value". gdb is
still alive!
example code:
PROGRAM TEST3
CALL HELLO( 'Hello World!\0')
END PROGRAM
SUBROUTINE HELLO( MSG)
BYTE MSG(*)
INTEGER I
I = 1
10 PRINT *, MSG( I)
I = I + 1
IF( I.LT.20) GOTO 10
END SUBROUTINE HELLO
Regards
Joachim
--
--
joachim.hussong@dlr.de
joachim.hussong@gmx.de
More information about the Gcc-bugs
mailing list