home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / vms / 22201 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.8 KB

  1. Path: sparky!uunet!crdgw1!rpi!gatech!paladin.american.edu!howland.reston.ans.net!spool.mu.edu!sdd.hp.com!decwrl!pa.dec.com!engage.pko.dec.com!nntpd.lkg.dec.com!gauche.zko.dec.com!jnelson
  2. From: jnelson@gauche.zko.dec.com (Jeff E. Nelson)
  3. Newsgroups: comp.os.vms
  4. Subject: Re: forcing Traceback output
  5. Message-ID: <1993Jan27.234409.13431@nntpd.lkg.dec.com>
  6. Date: 27 Jan 93 23:44:09 GMT
  7. References: <86657@ut-emx.uucp>
  8. Sender: usenet@nntpd.lkg.dec.com (USENET News System)
  9. Reply-To: jnelson@gauche.zko.dec.com (Jeff E. Nelson)
  10. Organization: Digital Equipment Corporation
  11. Lines: 33
  12.  
  13.  
  14. In article <86657@ut-emx.uucp>, pso@phobos.as.utexas.edu (P Samuel
  15. Odoms) writes:
  16. |>Is there a way to force the traceback handler to get control, at any
  17. |>time during the execution of an image, to print out the current stack
  18. |>information?  I should add that I'm hoping there is something
  19. |>analogous to LIB$SIGNAL(SS$_DEBUG).  I don't want my image to
  20. |>abort execution, though; it should be able to resume where it left off.
  21.  
  22. Yes, this is possible if the following conditions are met:
  23.  
  24. 1. The program calls lib$signal with an -informational- message. You'll have
  25.    to invent your own, since there isn't a default one available. Inventing
  26.    your own is a good idea anyway, since you can inform your user that what
  27.    follows is expected, e.g.,
  28.  
  29.     %FOOBAR-I-TRACEBACK, forcing a traceback now
  30.  
  31. 2. The program's exception handlers (if any) must RESIGNAL this informational
  32.    message. If any exception handler handles the exception, then
  33.    traceback will never get a chance to see it.
  34.  
  35. 3. The program is compiled with the default switch of /DEBUG=TRACEBACK.
  36.  
  37. 4. The program is linked with the default switch of /TRACE.
  38.  
  39. 5. The program is not run with /DEBUG. TRACE can't be activated if the debugger
  40.    is already running.
  41.  
  42.  
  43. -Jeff E. Nelson
  44. -Digital Equipment Corporation
  45. -Internet: jnelson@gauche.zko.dec.com
  46.