home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / sgi / 11497 < prev    next >
Encoding:
Internet Message Format  |  1992-07-27  |  1.5 KB

  1. Path: sparky!uunet!munnari.oz.au!comp.vuw.ac.nz!waikato.ac.nz!aukuni.ac.nz!ecmtwhk
  2. Newsgroups: comp.sys.sgi
  3. Subject: dbx can't find PARAMETER in 4.0.4 / f77 3.4
  4. Message-ID: <1992Jul28.030123.29019@ccu1.aukuni.ac.nz>
  5. From: ecmtwhk@ccu1.aukuni.ac.nz (Thomas Koenig)
  6. Date: Tue, 28 Jul 1992 03:01:23 GMT
  7. Organization: University of Auckland, New Zealand.
  8. Lines: 43
  9.  
  10. Although the release notes for ftn 3.4 under IRIX 4.0.4 claim that
  11.  
  12.     o Constant symbolic names
  13.       All symbolic names used in PARAMETER statements to define
  14.       constants are    now put    in the symbol table so they can    be
  15.       referred by names when running dbx.
  16.  
  17. it does not work; typescript follows:
  18.  
  19. ccu1 ~/fortran/misc> cat tst.f
  20.       PROGRAM TST
  21.       PARAMETER (A=3.)
  22.       CALL ABORT
  23.       WRITE (*,*) A
  24.       END
  25. ccu1 ~/fortran/misc> f77 -g tst.f
  26. ccu1 ~/fortran/misc> a.out
  27. Fortran abort routine called
  28. IOT trap (core dumped)
  29. ccu1 ~/fortran/misc> dbx a.out
  30. dbx version 2.40 3/7/92 1:12
  31. Type 'help' for help.
  32. Reading symbolic information of `a.out' . . .
  33. Process name from core dump: a.out
  34. Process died at pc 0x41d798 of signal : Abort
  35. [using memory image in core]
  36. (dbx) up 9
  37. .tst.tst() ["/disk2/ecm/ecmtwhk/fortran/misc/tst.f":3, 0x400284]
  38. (dbx) l 1
  39.      1        PROGRAM TST
  40.      2        PARAMETER (A=3.)
  41. >    3        CALL ABORT
  42.      4        WRITE (*,*) A
  43.      5        END
  44. (dbx) print a
  45.  
  46. "a" is not defined.
  47. (dbx) quit
  48. ccu1 ~/fortran/misc> exit
  49. -- 
  50. Thomas Koenig, ecmtwhk@ccu1.aukuni.ac.nz, ib09@rz.uni-karlsruhe.de
  51. The joy of engineering is to find a straight line on a double logarithmic
  52. diagram.
  53.