ddd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

fortran and ddd problem


From: Massimo Alonzo
Subject: fortran and ddd problem
Date: 23 Jul 2002 23:25:28 +0200

Hi,

I'm experiencing a problem with DDD when I ask to it to debug a program
which has to open a file and read some numbers.

This is a snapshot of the code:

        REAL*8 RES,XMIN,XMAX,AUX,IR1,IR2,FOC,SX,SY,PSF
        INTEGER NELE,NT

......
......


        OPEN (UNIT=1,FILE='PIPPO.DAT')
        READ (UNIT=1,FMT=100)
     &       XMIN,XMAX,SX,SY,FOC,PSF,IR1,IR2
 100    FORMAT (
     &          E8.2/,
     &          E8.2/,
     &          E8.2/,
     &          E8.2/,
     &          E8.2/,
     &          E8.2/,
     &          E8.2/,
     &          E8.2
     &         )
        CLOSE (UNIT=1)



When ddd reads these instructions gives the message:

(gdb) run
fmt: end of file
apparent state: unit 1 named PIPPO.DAT
last format: (E8.2,/,E8.2,/,E8.2,/,E8.2,/,E8.2,/,E8.2,/,E8.2,/,E8.2)
lately reading sequential formatted external IO

Program received signal SIGABRT, Aborted.
0x42029241 in kill () from /lib/i686/libc.so.6
(gdb) 


PIPPO.DAT contains:
-.4
.4
12.5
12.5
25.0
24.5
1.0
1.0




My program works really well and I cannot understand why DDD stops
debugging.


I use g77 (gcc-g77-2.96-110) on a RedHat 7.3 to compile my programs:

g77 -g program_name -o prog.o


Can you help me?

Thank you 
Massimo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]