home *** CD-ROM | disk | FTP | other *** search
/ Reverse Code Engineering RCE CD +sandman 2000 / ReverseCodeEngineeringRceCdsandman2000.iso / RCE / +Sandman / si-ug-chapter10.txt < prev    next >
Text File  |  2000-05-25  |  6KB  |  112 lines

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