Does sdbg support fortran77 code without restrictions?
My test programs work with fortran77 and with fortran95 without sdbg correctly but when I try to debug the code/program the debugger behaves strange.
I have problems always when I use more then one subroutine in my library file...
My Errors in sdbg:
Call Stack/Status - Access violation Unknown
or
Call Stack/Status Privileged instruction scc_lib_version WSF2__ *UnknownÜ
or
FortranStartup without any source code
My Code ist very simple:
Main:
PROGRAM TEST
C
INTEGER*2
*IDUM
C
WRITE(*,*)'Start: Program'
CALL MYSUB2()
CALL MYSUB3()
IDUM=32
CALL MYTRV(IDUM)
C
WRITE(*,*)'End: Program'
END
LIB
SUBROUTINE MYSUB2()
C
INTEGER*4
*I,J
C
WRITE(*,*)'Start: MYSUB2'
J=4
I=J*J
C
WRITE(*,*)'End: MYSUB2'
RETURN
END
C
C
SUBROUTINE MYSUB3()
C
INTEGER*4
*I,J
C
WRITE(*,*)'Start: MYSUB3'
J=4
I=J*J
C
WRITE(*,*)'End: MYSUB3'
RETURN
END
C
C
SUBROUTINE MYTRV (IDUM)
C
INTEGER*2 IDUM
C
C CHARACTER CTRRV*1
C
C COMMON /COMIRV/ CTRRV
C
C CTRRV=CHAR(IDUM)
C
WRITE(*,*)'Start: MYTRV'
IDUM=2
WRITE(*,*)'End: MYTRV'
RETURN
END
Linkfile
lo test3.obj
lo sub3.lib
file test3.exe
Batch
@echo off
ftn95 test3.for /debug/windows
ftn95 sub3.for /debug /MKLIB
slink test3.lnk
sdbg test3.exe