home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / fortran / 5150 < prev    next >
Encoding:
Text File  |  1993-01-24  |  3.6 KB  |  82 lines

  1. Newsgroups: comp.lang.fortran
  2. Path: sparky!uunet!cs.utexas.edu!torn!skule.ecf!drill.me!steinman
  3. From: steinman@me.utoronto.ca (David Steinman)
  4. Subject: Re: dbx headache
  5. Message-ID: <C1BI9E.6ot@me.utoronto.ca>
  6. Sender: news@me.utoronto.ca (News Reader)
  7. Organization: UofT Mechanical Engineering
  8. References: <93021.234529MATOVICM@QUCDN.QueensU.CA> <1993Jan22.135940.9828@msdrl.com> <1993Jan22.171934.15193@midway.uchicago.edu>
  9. Date: Sat, 23 Jan 1993 17:36:49 GMT
  10. Lines: 70
  11.  
  12. jfu2@kimbark.uchicago.edu (Carlo Graziani) writes:
  13.  
  14. >In article <1993Jan22.135940.9828@msdrl.com> ball@msdrl.com (Richard Ball) writes:
  15. >>MATOVICM@QUCDN.QueensU.CA () writes:
  16. >>: I'm fed up with dbx (SGI, IRIX 3.3.2, IRIX 4.0.1) when debugging fortran
  17. >>: programs. Examining arrays is pain in a neck unless you deal with the
  18. >>: size a(3,3) or similar. Is there any way to say e.g.
  19. >>:   print a from 155 to 175 (and possibly to specify the increment).
  20. >>: Or, is there any other UNIX (public domain) debugger that can handle
  21. >>: arrays frinedly?
  22. >>
  23. >>your dbx should let you do
  24. >>&a(155)/20f
  25. >>to print the 20 elements of a in floating point format starting at element
  26. >>155. It's not the most friendly way but it is better than listing the whole
  27. >>thing.
  28.  
  29. >Yeah, but sadly this only allows contiguously stored array elements to
  30. >be displayed.  It would be nice to be able to display _logically_ contiguous
  31. >elements, even when they are not stored contiguously i.e. "print A(1,7-15)",
  32. >or some such syntax.
  33.  
  34. As if by magic, something called "Duel" has been posted in alt.sources.  I
  35. claims to be a high-level debugging language which does exactly what you
  36. require.  The caveat is that is will currently only work with gdb (Gnu 
  37. debugger?), but can be implemented with dbx, etc.
  38.  
  39. Here's the intro from the post...
  40. --
  41. Dave!
  42.  
  43. -----------------------------------------------------------------------------
  44. DUEL -  A high level language for debugging C programs.
  45. -----------------------------------------------------------------------------
  46. Duel is a special purpose language designed for concise state 
  47. exploration of debugged C programs under existing debuggers.
  48. It allows you to explore your program's state better than either 
  49. the debugger's commands, a C interpreter, or print statements
  50. added to your programs. The debugger is extended with the new 
  51. 'dl' command for Duel expressions:
  52.      gdb> dl x[1..10] >? 5
  53.      x[3] = 14
  54.      x[8] = 6
  55. prints the array elements x[1] to x[10] that are greater than 5. 
  56. The output includes the values 14 and 6, as well as their 
  57. symbolic representation "x[3]" and "x[8]".
  58.  
  59. The output includes the values 14 and 6, as well as their 
  60. symbolic representation "x[3]" and "x[8]".
  61. Duel is debugger-independent, but the current distribution interface only
  62. with gdb. You will need the source for gdb-4.6, or 4.7. Duel is public 
  63. domain code. Do whatever you like with it - add it to commercial debuggers,
  64.  
  65. to dbx/sdb or even make it part of the GNU project. 
  66. No part of this distribution contains any copyright or derived code,
  67. (i.e. no GPL code, either). Free and public domain code need no disclaimer,
  68.  
  69. which is obvious to anyone in the software business.
  70. Even if you don't normally use debuggers, but you are programming in C,
  71. give
  72. Duel a try! The man page & help even include summary of useful gdb
  73. commands.
  74. Duel is available for anonymous ftp from ftp.cs.princeton.edu, in 
  75. /duel/duel.tar.Z. "tar.Z" format means you should use the command
  76.  "zcat duel.tar.Z | tar xf -" to unpack the files.
  77. The Usenix Jan/93 paper about Duel is also available as tech report 399,
  78. in /reports/1992/399.ps.Z on ftp.cs.princeton.edu
  79. DUEL is "Debugging U (might) Even Like" or "Don't Use this Exotic Language"
  80. you should judge which is better!
  81.  
  82.