- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
After having installed the compiler (and the debugger) I tried to debug some codes written in F77 but I got some problems:
--> ddd3.3.1
.....
OPEN (UNIT=1,FILE='startdatafortran.dat')
READ (UNIT=1,FMT=100)
& XMIN,XMAX,SX,SY,FOC,PSF,IR1,IR2,FMIN,FMAX,NSEZV
100 FORMAT (
& E7.2/,
& E7.2/,
& E7.2/,
& E7.2/,
& E7.2/,
& E7.2/,
& E7.2/,
& E7.2/,
& E7.4/,
& E7.4/,
& I4
& )
CLOSE (UNIT=1)
during debugging session all the values red are wrong, for example XMIN seems to be equal to 2342443543543.23243 but it is -0.4.
this is the file from which numbers are red:
-.4
.4
12.5
12.5
25.0
26.0
1.0
1.0
0.0245
0.0255
208
[
Note:
I used:
wan>ifc -g -otest1.o program.f
to compile the program
If I use g77 -g program.f -o test1.o everything work!
]
So my questions are:
-Can I use ddd to debug my programs?
- if yes why I get this strange behavior? How can I solve it?
- if not which debugger can I use?
Thank you
Best Regards
Massimo
After having installed the compiler (and the debugger) I tried to debug some codes written in F77 but I got some problems:
--> ddd3.3.1
.....
OPEN (UNIT=1,FILE='startdatafortran.dat')
READ (UNIT=1,FMT=100)
& XMIN,XMAX,SX,SY,FOC,PSF,IR1,IR2,FMIN,FMAX,NSEZV
100 FORMAT (
& E7.2/,
& E7.2/,
& E7.2/,
& E7.2/,
& E7.2/,
& E7.2/,
& E7.2/,
& E7.2/,
& E7.4/,
& E7.4/,
& I4
& )
CLOSE (UNIT=1)
during debugging session all the values red are wrong, for example XMIN seems to be equal to 2342443543543.23243 but it is -0.4.
this is the file from which numbers are red:
-.4
.4
12.5
12.5
25.0
26.0
1.0
1.0
0.0245
0.0255
208
[
Note:
I used:
wan>ifc -g -otest1.o program.f
to compile the program
If I use g77 -g program.f -o test1.o everything work!
]
So my questions are:
-Can I use ddd to debug my programs?
- if yes why I get this strange behavior? How can I solve it?
- if not which debugger can I use?
Thank you
Best Regards
Massimo
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think you're supposed to use ldb, which is compatible with ddd.
Steve
Steve
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page