Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!ut-emx!emx.utexas.edu!mclay From: mclay@vato.ae.utexas.edu (Robert McLay) Newsgroups: comp.lang.fortran Subject: sun f77 and dbx and # line directives Message-ID: Date: 5 Feb 91 16:49:02 GMT Sender: news@ut-emx.uucp Distribution: comp Organization: CFD Lab, Dept ASE-EM, University of Texas at Austin Lines: 41 I use a fortran pre-processor. (fortran needs all the help it can get) If you uses # line_no "file" directives in the generated fortran the compiler very nicely reports your errors in your original source file. HOWEVER, dbx, gets completely lost. It returns machine instructions. This use to work when sun handled vax fortran with the f77cvt program. Is this ever going to get fixed? Note that gdb doesn't do it right either. For example a simple input file in my fortran pre-processor (say tst.cs) program tst real a(100) do i = 1,100 a(i) = float(i) enddo stop the output would be: # 1 "tst.cs" program tst real a(100) do 8511 i = 1,100 a(i) = float(i) 8511 continue stop -- ______________________________________________________________________________ Robert McLay | When you have a problem, put NO in front of Manager CFD Lab | it and you have: NO PROBLEM. Dept ASE-EM | University of Texas at Austin | -- Eric Beckman's 2nd Law | mclay@wilbur.ae.utexas.edu |