home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / fortran / 5154 < prev    next >
Encoding:
Internet Message Format  |  1993-01-24  |  1.7 KB

  1. Path: sparky!uunet!cs.utexas.edu!torn!news.ccs.queensu.ca!qucdn!matovicm
  2. Organization: Queen's University at Kingston
  3. Date: Sat, 23 Jan 1993 21:07:54 EST
  4. From: <MATOVICM@QUCDN.QueensU.CA>
  5. Message-ID: <93023.210754MATOVICM@QUCDN.QueensU.CA>
  6. Newsgroups: comp.lang.fortran
  7. Subject: Re: dbx headache
  8. References: <93021.234529MATOVICM@QUCDN.QueensU.CA>
  9.  <1993Jan22.135940.9828@msdrl.com> <1993Jan22.171934.15193@midway.uchicago.edu>
  10. Lines: 22
  11.  
  12. Thanks a lot to all the people that bothered to respond. At least I know now
  13. that my headache is real, because the responses seem to point somewhere in the
  14. future (if FORTRAN lives long to see it?), with the exception of the dbx fea-
  15. ture offered on the SPARC, but, then, I work on SGI for the time being.
  16.  
  17. I think I could have the solution in principle, but I couldn't make it work.
  18. Here is the idea:
  19.     DBX allows interactive function (and in FORTRAN, subroutine) calls from
  20. within debugger, if this function/subroutine is linked with the program. This
  21. way, I managed to incorporate a routine that dumps all my data in the output
  22. files whenever a want it. I simply enter
  23.        ccall mywrite
  24. Than using other (simple) program I examine that database. This whole thing
  25. would work MUCH better if I were able to pass the arguments to the subroutine
  26. or function call. So far, I've been trying... The problem is that dbx requests
  27. C calling conventions even for the FORTRAN debuging, and I couldn't match these
  28. conventions so far. I've tried to reverse the order of arguments, to compile
  29. the C routine (just the one to print data) using mkf2c interface, than assemb-
  30. ler, and all I managed is to drive my frustration up. Anybody out there that
  31. could add to this?
  32.  
  33. Darko Matovic
  34.