TOPS-20 PASCAL Language Manual - Bitsavers
TOPS-20 PASCAL Language Manual - Bitsavers
TOPS-20 PASCAL Language Manual - Bitsavers
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
PASDDT: THE <strong>PASCAL</strong>-<strong>20</strong> DEBUGGER<br />
The following rules apply to the use of BREAK:<br />
If you specify a break identifier, but not a line number, the<br />
following happens:<br />
• If there is already a breakpoint with this identifier, this<br />
breakpoin~ is used.<br />
• If there is no breakpoint with this identifier, an error<br />
occurs.<br />
If you specify a line number, but not a break identifier, the<br />
following happens:<br />
• If a breakpoint is assigned for this<br />
breakpoint is used.<br />
location,<br />
that<br />
• If a breakpoint has not been assigned, a new breakpoint is<br />
established with the identifier NO NAME.<br />
If the command specifies both a line number and a break identifier,<br />
the following happens:<br />
• If a breakpoint has already been assigned for this location<br />
with this identifier, the previously defined breakpoint is<br />
used.<br />
• If a breakpoint has already been assigned for this location<br />
with a different identifier, an error occurs.<br />
• If a breakpoint has already been assigned at another location<br />
with this identifier, and no breakpoint has been set at this<br />
location, PASDDT prints a warning message. PASDDT then asks<br />
if you want to override the address associated with that<br />
breakpoint. If so, the previous breakpoint is discarded, and<br />
a new breakpoint is declared with the given identifier and<br />
location.<br />
Note that you must use the PROCEED command after each break for the<br />
program to continue. PROCEED is described in Section 9.4.7.<br />
Note the following example:<br />
PASDDT)break 10 first<br />
PASDDT)displa~ break<br />
BREAK POINT(S):<br />
Name = FIRST<br />
Break Address 000000400044<br />
Line Number<br />
10<br />
Status<br />
BREAK<br />
PASDDT)proceed<br />
»BREAK:FIRST<br />
PC AT VIRTUAL ADDRESS 00000040044<br />
<strong>PASCAL</strong> LINE NUMBER 10<br />
LINE 9:<br />
LINE 10:<br />
Count:= O~<br />
WRITELN ('Enter ~our scores. When done, t~pe CTRL/Z.');<br />
LINE 11:<br />
PASDDT)<br />
WHILE NOT EOF DO<br />
9-5