home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / vmsnet / misc / 801 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  3.0 KB

  1. Xref: sparky vmsnet.misc:801 vmsnet.internals:1294
  2. Path: sparky!uunet!noc.near.net!hri.com!spool.mu.edu!sdd.hp.com!hamblin.math.byu.edu!yvax.byu.edu!heinrich
  3. From: heinrich@yvax.byu.edu (Ed Heinrich  - The LOKI Group, Inc.)
  4. Newsgroups: vmsnet.misc,vmsnet.internals
  5. Subject: Re: Analyzing a process dump
  6. Message-ID: <1992Sep7.121532.914@yvax.byu.edu>
  7. Date: 7 Sep 92 19:15:32 GMT
  8. References: <lac6ibINN7h8@news.bbn.com>
  9. Distribution: na
  10. Organization: Brigham Young University
  11. Lines: 52
  12.  
  13. In article <lac6ibINN7h8@news.bbn.com>, mjensen@BBN.COM (Martin Jensen) writes:
  14. > Greetings again vms.wizards ...
  15. >     One more question, then I promise I'll leave you alone ... for a
  16. >     while anyway :-)
  17. >     I've got an executable that runs with the /dump qualifier.  I expect
  18. >     that, on occasion, the process will crash.  (as a matter of fact, we
  19. >     intentionally crash it if software detects an unrecoverable condition
  20. >     in the code).
  21. >     The problem is that the dump files are pretty useless.  'show  calls'
  22. >     reports  only the module names - no routine names - and I've only got
  23. >     access to universal symbols.  The program is compiled with the /debug
  24. >     switch and linked with /trace.
  25. >     If  I  link  with  /debug,  I get the debugger linked in.  I've tried
  26. >     linking with /debug=foo (where foo contains  the  program  main)  ...
  27. >     that  seems  to  work  (outside  of  some strange symbol behavior for
  28. >     objects in foo), but now I've got the overhead  of  the  DST  in  the
  29. >     runtime image.
  30. >     Ideally, I would like to be able use anal/proc/image=xxx against the
  31. >     dump from the normally linked executable - where xxx would be an
  32. >     image containing the full DST and GST.  The couple of options I have
  33. >     tried allow me to analyze the dump, but the symbol locations don't
  34. >     match properly between the images.
  35. >     Any ideas???
  36. > ---   Martin Jensen     \   BBN Communications     \  #include          ---
  37. >  ---   mjensen@bbn.com   \   150 CambridgePark Dr.  \  <std.disclaimer>  ---
  38. >   ---   (617) 873-4859    \   Cambridge, MA   02140  \                    ---
  39.  
  40.  
  41.  
  42. ANA/PROCESS has a /IMAGE qualifer.  One option you have, assuming you want
  43. to keep two copies, which is sometime advantageous, is when building the 
  44. image perform two links:  One with DEBUG and one w/out.  The non-debug
  45. version can always be executed as the production version.  The /DEBUG
  46. version is specified as the image to use for obtaining the symbols when
  47. examining the dump via the /IMAGE= qualifier.  (Obviously you will want to
  48. name the DEBUG image w/ a different file name or extension). This does, of 
  49. course, eat up more disk space but leaves you with a version that can be used 
  50. for debugging w/out having to rebuild from - possibly modified - sources.
  51.  
  52. *+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*
  53. Ed Heinrich
  54. The LOKI Group, Inc.
  55. HEINRICH@yvax.byu.EDU
  56. *+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*
  57.