Data Viewing and Modification Commands [ Symbolic Debugger/iX User's Guide ] MPE/iX 5.0 Documentation
Symbolic Debugger/iX User's Guide
Data Viewing and Modification Commands
Table I-3. Data Viewing and Modification Commands
---------------------------------------------------------------------------------------------
| | | |
| Cmd | Syntax | Description |
| | | |
---------------------------------------------------------------------------------------------
| | | |
| disp | | Used only with HP COBOL II programs to |
| | { disp } var | print COBOL variables. Simple items, |
| | { display} | fields, and array elements can be |
| | | displayed. Items displayed can be of type |
| | | "edited" or "non-edited". |
| | | |
---------------------------------------------------------------------------------------------
| | | |
| l | | Lists all parameters and local variables of |
| | { l } [ proc [ :depth]] | the current procedure. You can optionally |
| | { list} | specify any active procedure and its depth |
| | | on the stack. |
| | | |
---------------------------------------------------------------------------------------------
| | | |
| lc | | Used when debugging an HP FORTRAN 77 |
| | { lc } [ string] | program, this command displays HP FORTRAN |
| | { list common} | 77 common blocks and their associated |
| | | variables. If a string is specified, only |
| | | those common blocks whose names begin with |
| | | that string are printed; otherwise, all |
| | | common blocks within the current |
| | | subroutine/function are printed. |
| | | |
---------------------------------------------------------------------------------------------
| | | |
| lg | | Lists all global variables and their |
| | { lg } [ string] | values. If a string is specified, only |
| | { list globals} | those global variables whose names begin |
| | | with this string are listed. |
| | | |
---------------------------------------------------------------------------------------------
| | | |
| ll | | Lists all labels and program entry points |
| | { ll } [ string] | known to the linker. If a string is |
| | { list labels} | specified, only those symbolic addresses |
| | | with this prefix are used. |
| | | |
---------------------------------------------------------------------------------------------
| | | |
| lm | | Displays all user-defined macros and their |
| | { lm } [ string] | definitions. If a string is specified, |
| | { list macros} | only those macros whose names begin with |
| | | this string are listed. |
| | | |
---------------------------------------------------------------------------------------------
| | | |
| lp | | Lists all procedure names and their aliases |
| | { lp } [ string] | as well as their locations in memory. If a |
| | { list procedures} | string is specified, only those procedures |
| | | whose names begin with this string are |
| | | listed. |
| | | |
---------------------------------------------------------------------------------------------
| | | |
| lr | | Lists all registers and their contents. If |
| | { lr } [ string] | a string is specified, only those registers |
| | { list registers} | beginning with this string are listed. |
| | | |
---------------------------------------------------------------------------------------------
| | | |
| ls | | Lists all special variables and their |
| | { ls } [ string] | values. Registers are not listed. If a |
| | { list specials} | string is specified, only those special |
| | | variables whose names begin with this |
| | | string are listed. |
| | | |
---------------------------------------------------------------------------------------------
Table I-3. Data Viewing and Modification Commands (cont.)
---------------------------------------------------------------------------------------------
| | | |
| Cmd | Syntax | Description |
| | | |
---------------------------------------------------------------------------------------------
| | | |
| mov | | Used only with HP COBOL II programs to |
| | { mov } expr1 to expr2 | modify variables. The first expression is |
| | { move} | the source; the second is the destination. |
| | | The source and destination cannot be an |
| | | edited field. The source can be any |
| | | non-edited COBOL field, a string literal, a |
| | | number, or a named constant (such as SPACES |
| | | or BLANKS). The destination can be any |
| | | non-edited COBOL field. |
| | | |
---------------------------------------------------------------------------------------------
| | | |
| p | | Displays program data in the formats shown |
| | { expr [ ?format] } | in tables 1-5 and 1-6 of chapter 1, |
| | { p }{ [ +] [ [ \]format]} | "Reference Tables". A format has the |
| | { print}{ [ -] } | syntax: |
| | | |
| | | |
| | | [ count] { formchar} [ size] |
| | | |
| | | Formchar, which is required, is the actual |
| | | format in which you choose to display the |
| | | data. Count is the number of times to |
| | | apply the format. Size is the number of |
| | | bytes that are formatted for each data |
| | | item, and overrides the default size for |
| | | the given format. p+ prints the next |
| | | element. p- prints the previous element. |
| | | Use the \format option to display the value |
| | | of the expression in a specific format. |
| | | Use the ?format option to print the address |
| | | of the evaluated expression in the selected |
| | | format. The p (print) command is also used |
| | | to modify the value of a variable when expr |
| | | contains an assignment operator. |
| | | |
---------------------------------------------------------------------------------------------
MPE/iX 5.0 Documentation