home *** CD-ROM | disk | FTP | other *** search
/ Collection of Hack-Phreak Scene Programs / cleanhpvac.zip / cleanhpvac / SICE-DOC.ZIP / DOC-TXT.ZIP / CHAP10 < prev    next >
Text File  |  1992-05-24  |  6KB  |  152 lines

  1.   CHAPTER 10
  2.  
  3.  Using Soft-ICE with MagicCV or MagicCVW
  4.    10.1 Introduction
  5.    10.2 Running Soft-ICE with MagicCV or MagicCVW
  6.    10.3 Special Considerations
  7.    10.4 The Soft-ICE ACTION Command
  8.  
  9.      203
  10.  
  11.  10.1 Introduction
  12.  
  13. MagicCV allows you to run Microsoft's CodeView in less than 8K of
  14. conventional memory on your 80386 machine.
  15.  
  16. MagicCVW allows you to run Microsoft's CodeView for Windows in less than
  17. 8K of conventional memory on your 80386 machine.
  18.  
  19. Using Soft-ICE in combination with MagicCV or MagicCVW allows you to have
  20. the power of Soft-ICE while still having the convenience of using the
  21. CodeView product that you are familiar with.
  22.  
  23. In the rest of this chapter, statements about MCV will apply to both
  24. MagicCV and MagicCVW, and statements about CV will apply to both CodeView
  25. and CodeView for Windows.
  26.  
  27.  10.2 Running Soft-ICE with MagicCV or MagicCVW
  28.  
  29. To use Soft-ICE 2.0 and MCV together, you must install S-ICE.EXE as a
  30. loadable device driver. S-ICE.EXE comes on the Soft-ICE diskette. S-
  31. ICE.EXE replaces NUMEGA.SYS in CONFIG.SYS. Use the /MCV, /EMM, and the
  32. /EXT switches as if using MagicCV or MagicCVW alone. There are additional
  33. switches that you may want to use for Soft-ICE. Refer to chapter 6 for
  34. information about these switches.
  35.  
  36. To run MagicCV or MagicCVW after Soft-ICE has been loaded, refer to your
  37. MagicCV or MagicCVW manual.
  38.  
  39. Notes:
  40. MagicCVW requires Soft-ICE version 2.00 or greater.
  41.  
  42. MagicCV requires Soft-ICE version 1.02 or greater. The S-ICE.SYS and
  43. NUMEGA.SYS drivers were shipped with some versions of Soft-ICE. The S-ICE
  44. and NUMEGA
  45.  
  46.      204 
  47.  
  48. drivers must be replaced by S-ICE.EXE before you can run MagicCV and Soft-
  49. ICE 2.0 together.
  50.  
  51. 10.3 Special Considerations
  52.  
  53. Two Virtual Machines
  54.  
  55. When you are using both Soft-ICE and MCV together, you must keep in mind
  56. that CV is in a separate virtual machine from the target environment. You
  57. can pop Soft-ICE up from either virtual machine, i.e., when CV is running,
  58. or when the target program is running.
  59.  
  60. If you pop Soft-ICE up while the target program is running everything
  61. works as defined in the Soft-ICE manual. If you pop Soft-ICE up while CV
  62. is running (typically done to break points), you must keep a few points in
  63. mind:
  64.     * The registers are those of CV and they CAN NOT
  65.        be changed.
  66.     * For convenience, the Soft-ICE MAP command
  67.        displays the memory map of the target program
  68.        virtual machine, not the memory map of the CV
  69.        virtual machine. The highlighted area in the
  70.        memory map may not be correct.
  71.     * Any display or modification of memory occurs in
  72.        the target program's virtual machine.
  73.     * You have no visibility into the CV virtual machine
  74.        except for the display of register values.
  75.        Remember that when popping up the Soft-ICE
  76.        window while CV is active, the register values are
  77.        those of CV and should not be modified.
  78.     * Instruction and program tracing is disabled from
  79.        the Soft-ICE window when CV is active. This is to
  80.        prevent confusion, because a trace would actually
  81.        step through CV, not through the target program.
  82.  
  83.      205
  84.  
  85.        If you attempt to do a Soft-ICE Trace (T) or
  86.        Program Step (P) command while CV is active,
  87.        you will get the warning message: "Function
  88.        not available in CV virtual machine."
  89.        To trace through your target program code instead,
  90.        you can do one of two options:
  91.        * Use the CV trace command. To do this, exit
  92.            the Soft-ICE window using the Soft-ICE X
  93.            command, then do one or more CV traces to
  94.            step through the target program.
  95.        * Use Soft-ICE to go to the target program
  96.            address, then use the Soft-ICE T or P
  97.            commands to step through your target
  98.            program. To do this, exit the Soft-ICE window
  99.            with the Soft-ICE X command, then press the
  100.            'F3' key until CV is in 'mixed mode'. This
  101.            allows you to see both the source lines and the
  102.            instruction addresses. Pop up Soft-ICE. If the
  103.            Soft-ICE window is not already in narrow
  104.            mode, use the Soft-ICE WIN command to
  105.            change the window size. Move the Soft-ICE
  106.            window so you can see the instruction
  107.            addresses on the left side of the screen. Now
  108.            you can use the Soft-ICE G command to go to
  109.            one of the addresses. Be sure to type in the full
  110.            address, including the segment and the offset.
  111.            Then enter 'G' in the CV window. At this
  112.            point, CV is not active, so you can use the
  113.            Soft-ICE T or P commands to step through t
  114.            target program.
  115.  
  116.  CodeView's SHELL command
  117.  
  118. If you run the DOS shell from within the CodeView virtual machine, the DOS
  119. shell is part of the virtual machine. Because of this, you should not run
  120. any TSRs when you are in the DOS shell. If you do, when you exit CodeView
  121. the TSRs will disappear along with the virtual machine. This is
  122.  
  123.      206 
  124.  
  125. dangerous, because any interrupt vectors that were not restored could hang
  126. your machine.
  127.  
  128. CV's /R switch
  129.  
  130. Soft-ICE takes advantage of many of the 80386 features including the 80386
  131. debug registers. This means that the debug registers are not available for
  132. CV, so you cannot use the CV /R switch when running with Soft-ICE. If you
  133. do use the /R switch, Soft-ICE gives you a general protection error. At
  134. this point, you can press "C" to continue, then rerun CV without the /R
  135. switch, and use the Soft-ICE break points.
  136.  
  137. The CV /R switch works when you are running MCV without Soft-ICE.
  138.  
  139. 3.4 The Soft-ICE ACTION Command
  140.  
  141. The ACTION command allows three different methods activating CV from a
  142. Soft-ICE break point. The best choice of action is ACTION NMI. If you
  143. experience any problems with ACTION set to NMI (usually because an adapter
  144. card in your system is using NMI), use ACTION INT1.
  145.  
  146.      207
  147.  
  148.      PAGE 208 is BLANK
  149.  
  150.      208
  151.  
  152.