On-line Debugging Tool
On-line Debugging Tool (ODT) was used to describe several debugger programs developed for Digital Equipment Corporation (DEC) hardware. Various operating systems including OS/8, RT-11, RSX-11, and RSTS/E implemented ODT as did the firmware console of all of the LSI-11-family processors including the 11/03, 11/23/24, 11/53, 11/73, and 11/83/84.
The debugger allowed access to memory using octal addresses and data. Within the software systems, the debugger accessed the process's virtual memory. The firmware console implementation accessed physical memory.
Console ODT replaced the lights and switches console of many of the earlier processors.
Access to console ODT is obtained either from power up (with appropriate power up mode selected), by the execution of a HALT instruction in kernel mode, or by use of the front panel halt switch or button.
Console ODT commands are as follows:
|/ or a/||Opens the current memory location or a if specified|
|<CR>||Close currently open location or register|
|<LF>||Close currently open location or register and open next|
|P||Proceed, execute next instruction with no implied reset. If the halt switch is down this allows for single stepping|
|<addr>G||Load PC with <addr>, reset and commence execution at address|
|Rn/ or $n/||Open register n|
|RS/ or $S/||Open PSW|
If console ODT encounters a bus timeout it displays ?<CR><LF>
@1000/ xxxxxx 112737<LF> 001002 xxxxxx 101<LF> 001004 xxxxxx 177566<LF> 001006 xxxxxx 137<LF> 001010 xxxxxx 1000<CR> >R7/xxxxxx 1000<CR> >RS/340
This deposits the program
MOVB 'A', @#177566 ; Move 'A' into console transmit register JMP @#1000 ; Jump back to start
The deposit to the PC, sets the PC to the start of the program and the deposit to the PSW locks out interrupts.
The effect of this will be to write a stream of "A" to the console. As there is no check for transmitter ready, it is highly probable that a large number of garbage characters will be displayed.
The RSX-11M-Plus ODT is essentially a superset of all other ODT implementations.
ODT is implemented as code that is linked with a task using the Task Builder /DA switch.
Once any task built with ODT is run ODT is invoked on entry.
RUN HELLO ODT:TT0 _
The underscore is the standard ODT prompt.
It should be remembered that addresses in the ODT debugger are 16 bit virtual addresses in the mode in which ODT is operating, not the physical addresses used with console ODT.
|.||Current location indicator, i.e., address of last location opened|
|<CR> or k<CR>||Closes current location/register. If k is specified stores the value k in the open location before closing it.|
|<LF> or k<LF>||Closes current location/register and opens next If k is specified stores the value k in the ,open location before closing it.|
|^ or k^||Closes ,open location and opens immediately preceding. If k is specified stores the value k in the open location before closing it.|
|_ or k_||Opens the location calculated by using the contents of the present location as a PC relative offset if k is specified deposits the value k in the present location before opening the new location|
|@ or k@||As _ except using the contents of the current location as an absolute address|
|> or k>||Treats the low order byte of the open location as a branch offset, calculates the destination address of the branch and opens that location. If k specified stores the value k in the open location before opening the new location|
|< or k<||If the opened location was opened using the commands _ or > or @ closes the open location and reopens the location most recently opened using <lf>, ^, or /.|
|$n||One of the eight general purpose processor registers|
|$x or $nx||Represents the address of one of ODT's internal registers
|" or a"||Word mode ASCII Displays contents of the location a or the open location as ASCII and stores the contents of this location to $Q register.|
|' or a'||Byte mode ASCII|
|% or a%||Radix50 operator. Displays the contents of the location a or the open location as RADIX 50 and stores the contents of this location to $Q register.|
|/ or a/||Word mode octal operator. operator. Displays the contents of the location a or the open location as octal and stores the contents of this location to $Q register.||\ or a\||Byte mode octal operator. operator. Displays the contents of the location a or the open location as octal and stores the contents of this location to $Q register.|
|k=||Evaluates the expression k, displays its value in octal and stores the result to $Q|
|B||Removes all breakpoints from current task|
|nB||Removes breakpoint n from current task|
|a;nB||Sets breakpoint n at address a in user task|
|C||Represents the contents of the $C register|
|D||I/D systems only access D space|
|E or kE or m;E or m;kE||Searches memory from $L (low memory limit register) to $H high memory limit register for references to the effective address specified by $A (search argument register) as masked by the value specified by $M (search mask register). If k is specified k replaces the contents of $A. If m is specified m replaces the contents of $M. References will match if they are an absolute match, a pc relative match or a branch displacement to $A.|
|F or kF||Fills memory from $L to $H with the contents of $A. If k is specified k replaces the contents of $A before the command is executed.|
|G or aG||Substitutes all breakpoints with BPT instructions. Restores user registers. If a is specified the PC is loaded with a, and begins executing user task.|
|I||I and D systems only - access I space|
|P or kP||Proceeds with program execution and stops when the end of the program or the next breakpoint is reached. If k is specified the program stops only after it has executed the next breakpoint k times.|
|S or nS||Ececutes one instruction or n instructions if n specified.|
|U||RSX-11M-Plus only accesses user mode memory|
|V||Enables ODT handling of all SST vectors|
|X||Exits user program and ODT and returns to the executive.|
|Z||RSX-11M-Plus only accesses supervisor memory|
- p192-202 PDP-11 Processor Handbook: pdp11/04/24/34a/44/70, Digital, 1981
- IAS/RSX-11 ODT Reference Manual, Order Number AA-M507A-TC, Digital, 1982