18.08.2013 Views

(SYSLIB) Programming Reference Manual - Public Support Login ...

(SYSLIB) Programming Reference Manual - Public Support Login ...

(SYSLIB) Programming Reference Manual - Public Support Login ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Program Trace Routine<br />

In each of the following circumstances, SNOOPY ignores all commands on the line after<br />

the last one performed; they can be reentered if desired.<br />

• Trace termination (unless mode bit 16 was set).<br />

• The @@X C sequence interrupts the trace.<br />

• SNOOPY encounters an invalid command.<br />

• A CHANGE, TOFF$, or EXIT$ command is used without a trailing asterisk.<br />

Entering a blank line (carriage return) in reply to the “C--” has the same effect as the<br />

STEP command. A blank line response to a parameter request may be erroneous or may<br />

have a special meaning, depending on the nature of the command.<br />

To enter an Executive control statement, answer a command solicitation by entering a<br />

line beginning with the character %. The remainder of the line should be an Executive<br />

control statement without the initial @ character. The statement must be legal for<br />

submission to the CSF$ Executive Request function. SNOOPY converts the initial %<br />

character to an @ and submits the resulting image to CSF$.<br />

If the CSF request is processed normally, the status bits from register A0 are displayed<br />

and SNOOPY solicits the next command. Otherwise, SNOOPY intercepts the<br />

appropriate contingency and prints the message “CSF$ ERROR” followed by command<br />

solicitation. For example, to assign a temporary file named T35, respond to “C--” by<br />

typing “%ASG,T T35,F2”.<br />

When command mode is entered at trace termination, the trace may be completed only<br />

by using the GO or STEP commands or a command with an equivalent effect. Once<br />

such a command is entered, no further commands are executed, and the trace<br />

terminates. The activity then continues execution or exits, depending on the type of<br />

trace termination.<br />

In all cases where number is called for, octal notation is assumed. Unless indicated<br />

otherwise, a leading zero is not required. In general, SNOOPY uses octal notation<br />

everywhere except in register designations and in the instruction cycle count printed by<br />

SNOOPY.<br />

Certain commands (TOFF$, EXIT$, and CHANGE) clear SNOOPY's command buffer<br />

before reading further commands because of the potentially irreversible nature of the<br />

operation that will be performed. If this is not desired, affix an asterisk to the command<br />

(TOFF*). For example, to terminate a trace and continue an execution without typing in<br />

two lines, use the sequence “TOFF$*GO”.<br />

Refer to 24.4.2 for a list of all SNOOPY commands. All commands except ALTPRT,<br />

TON$, RBK, RLIB, and STEP can be abbreviated to the first character.<br />

In some cases, particularly for complex programs, the set of commands SNOOPY<br />

provides may not meet all debugging requirements. For this reason, there is a method<br />

that allows the command interpreter to be extended as needed.<br />

24–6 7833 1733–004

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!