Aug 1, 1979
Comparison of CP and C!VIS Facilities for Debugging
If you are debugging problems while running CMS, you can choose the CP or CMS debugging tools. Refer to Figure 7 for a comparison of the CP and CMS debugging tools, Function CP CMS 1 -----------------------------------------------------------------------------------1 Setting address
stops ICan set only one address stoplCan set up to 16 address I at a time. I stops at a time. I I I I I ----------------------------------------------------------------------------1
to the
printer IThe dump is printed in hexa- IThe dump is printed in hexa- 1 decimal format with EBCDIC i decimal format. The storage 1 translation. The storage ad-I address of the first byte of
dress of the first byte of ! each line is identified at
each line is identified at I the left. The contents of
the left. The control blocksl general and floating-point
are formatted. i registers are printed at the I beginning of the dump.
DisplayingiThe display is typed in hexa-IThe display is typed in hexa­
the con-i decimal format with EBCDIC I decimal format. The CMS com­
tents of I translation. The CP command I mands QQ n01 display storage
storage I displays storage keys, I keys, floating-point regis­
and I floating-point registers andl ters, or control registers,
control ,control registers. , as the CP command does: registers, I at the I I terminal , I Storing informa­
The amount of information
stored by the CP command is
limited only by the length
of the input line. The in­
formation can be fullword
aligned when stored. CP stores data in the PSW, but
not in the CAW or CSW. How- ,The CMS command stores up to , 12 bytes of information. CMS , stores data in the general I registers but not in the I floating-point or control I registers. CMS stores data , in the PSW, CAW, and CSW. I ever, data can be stored in I the CSW or CAW by specifyingl
the hardware address in the , STORE command. CP also I stores the status of the , virtual machine in the , extended logout area. , ICP traces: I All interrupts, instruc- , tions, and branches I & SVC interrupts I I/O interrupts I Program interrupts f External interrupts , Privileged instructions I All user I/O operations I Virtual and real CCW's I All instructions , IThe CP trace is interactive. I You can stop and display I other fields. ICMS traces all SVC inter­
rupts. CMS displays the
contents of general and
floating-point registers
before and after a routine
is called. The parameter
list is recorded before a
routine is called. ________________________ ---- ________ __________________ -- ___________________ __J Figure 7. Comparison of CP and eMS Facilities for Debugging Part 1. Debugging with VM/370 37
Page of GC20-1807-7 As Updated Aug 1, 1979 by TNL GN25-0492
An Overview of VM/370 Commands that Can Be
Used for Debugging
The VM/370 Control Program provides interactive commands that control
the VM/370 system and enable the user to control his virtual machine and
associated control program facilities. The virtual machine operator
using these commands can gather much the same information about his
virtual machine as the operator of a real machine gathers using the
processor console.
Several of these commands (for example, STORE or DISPLAY) examine or
alter virtual storage locations. When CP is in complete control of
virtual storage (as in the case of DOS, MFT, MVT, PCP, CMS, and RSCS) these commands execute as expected. However, when the operating system
in the virtual machine itself manipulates virtual storage (as in the
case of OS/VS1, OS/VS2, or DOS/VS) these CP commands should not be used.
This section presents an overview of the VM/370 commands used for
debugging. It supplements the preceding section which discussed
debugging procedures and techniques. Instructions for using the
commands discussed in this section are in the following publications: VM/370 CP Command Reference for General Users VM/370 Operator's Guide VM/370 CMS Command and Macro Reference
The following categories of commands are discussed: Commands that display VM/370 control information Commands that set and query system features, conditions, and events Commands that collect and analyze system information Commands that trace events in virtual machines Commands that alter the contents of storage , COMMANDS THAT DISPLAY OR DUMP VIRTUAL MACHINE DATA Commands that display or dump virtual machine data are: DUMP, VMDUMP, DISPLAY, DCP, and DMCP. The DUMP and DISPLAY commands of CP are privilege class
and are used to display control information describing the
virtual machines.
G commands
status of
The DUMP command spools the following information to your virtual
printer: Virtual program status word (PSW) General registers Floating-point registers Control reqisters (if your VM/370 directory has the ECMODE option) Storage keys Virtual storage locations (first-level storage only) The DISPLAY command displays at your terminal the following kinds of
control information: Virtual storage locations {first-level storage only} Storage keys General registers Floating-pcint reaisters
36 13M VM/370 System Frograocrner's Guide
Previous Page Next Page