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

  1. From: medli@hpcuhe.cup.hp.com (Dave Medlicott)
  2. Date: Wed, 29 Jul 1992 14:54:02 GMT
  3. Subject: Re: Question on HP1000
  4. Message-ID: <31480208@hpcuhe.cup.hp.com>
  5. Organization: Hewlett Packard, Cupertino
  6. Path: sparky!uunet!darwin.sura.net!mips!sdd.hp.com!hpscdc!cupnews0.cup.hp.com!hppad.waterloo.hp.com!hppad!hpfcso!hpcuhb!hpcuhe!medli
  7. Newsgroups: comp.sys.hp
  8. References: <1992Jul29.002337.2465@CSD-NewsHost.Stanford.EDU>
  9. Lines: 84
  10.  
  11. > I need some pointers on a HP1000.
  12. > How does one go about producing a hex dump of a binary program in the
  13. > system?
  14.  
  15.     From the way you have phrased the question, I can't really tell 
  16. what you are trying to do. However, I'll take my best guess. I assume   
  17. that you have a program that is in memory and that you would like to
  18. dump a memory image of it to a file. If that is correct, then I don't
  19. know of any utility to do this. If you want to debug the program,
  20. you can get the symbolic debugger DEBUG/1000 (part# 92860A). If you
  21. really want to dump to a file, you can halt the system and use VCP
  22. to dump from memory to a magtape or to a CTD. However, this will start
  23. at word 0 of memory and continue for the number of words of memory 
  24. that you specify. Once you have dumped memory to tape, you can copy it
  25. back to disk using the CO command from CI if it is a magtape, however,
  26. you will need to use the utility DCOPY if it is a CTD. Once you have
  27. it on disk, you can use the ACDA dump analyzer to look at the dump.
  28. Both DCOPY and ACDA are available from INTEREX. Here's the blurb from
  29. the ACDA help file telling you how to copy from memory to tape:
  30.  
  31.      To dump memory of a crashed system to Magtape perform the following
  32.  
  33.       - Hit Break (if the computer isn't halted already)
  34.       - Copy down all registers (typically A,B,X,Y,RW,P all of Map set 0,2,3
  35.          are the most vital)
  36.       - set RW to 0
  37.       - set M  to 0
  38.         !! WARNING !! This is the M contents 0 and not the A register as you
  39.                       might think !!!
  40.       - set T  to the number of 32K WORD chunks of memory in OCTAL
  41.          (for example, if the CPU contains 512K BYTES of memory, you
  42.           convert to words - 256K WORDS - then divide by 32 yielding
  43.           8 and convert to octal yielding 10 so set T to 10)
  44.       - set M to 1
  45.       - set T to 0
  46.       - enter the VCP command %WMTnnnn ( where nnnn is the command string
  47.          that would have been used if you had booted from the magtape -
  48.          except that you replace the B with a W, for example
  49.          %WMT27 instead of %BMT27 )
  50.       - the dumped memory will be copied to tape (you typically will
  51.          need a very large tape for most average size memory dumps).
  52.  
  53.      To dump memory of a crashed system to CTD perform the following
  54.  
  55.       - Hit Break (if the computer isn't halted already)
  56.       - Copy down all registers (typically A,B,X,Y,RW,P all of Map set 0,2,3
  57.          are the most vital)
  58.       - set RW to 0
  59.       - set M  to 0
  60.         !! WARNING !! This is the M contents 0 and not the A register as you
  61.                       might think !!!
  62.       - set T  to the number of 32K WORD chunks of memory in OCTAL
  63.          (for example, if the CPU contains 512K BYTES of memory, you
  64.           convert to words - 256K WORDS - then divide by 32 yielding
  65.           8 and convert to octal yielding 10 so set T to 10)
  66.       - set M to 1
  67.       - set T to 0
  68.       - enter the VCP command %WDCnnnn (where nnnn is the command string that
  69.          would have been used if you had booted from the CTD - except that
  70.          you replace the B with a W, for example,
  71.          %WMT27 instead of %BMT27)
  72.       - the dumped memory will be copied to CTD
  73.       - take the CTD to the system you're running ACDA on and run
  74.          DCOPY to copy the contents of the CTD to file (you can't just do a
  75.          CO or ST command because of the CTD format).
  76.  
  77. I will issue another warning if dumping to a CTD - be VERY careful about the
  78. %WDC command. I have seen experienced users write right over their systems
  79. when they thought they were dumping to a CTD, but they accidentally gave
  80. the address of the disk.
  81.  
  82. If you have any other questions, feel free to ask here or to email to me
  83. directly.
  84.  
  85. Regards,
  86.  
  87. Dave
  88.  
  89. ------------------------------------------------------------------------
  90. Dave Medlicott            | Hewlett-Packard Co.
  91. MCSY Support            | 11000 Wolfe Rd. 
  92. medli@cup.hp.com        | MS 42UN
  93. (408) 447-5288            | Cupertino, CA 95014
  94. ------------------------------------------------------------------------
  95.