In this example, debugger commands are read in from a file called dbg. After all the commands are read and executed, the debugger prompts for the next command to be entered.
CodeWatch> READ dbg **** Reading commands from "dbg" ... CodeWatch> BREAKPOINT PRIMES\119 /SKIP=0 CodeWatch> BREAKPOINT PRIMES.READ_INPUT\%ENTRY /SKIP=0 [e maxv;] CodeWatch> BREAKPOINT PRIMES.ISPRIME\%ENTRY /SKIP=0 CodeWatch> BREAKPOINT PRIMES.PRINT_OUT\60 /SKIP=0 CodeWatch> BREAKPOINT PRIMES.PRINT_OUT\59 /SKIP=0 CodeWatch> MACRO info=[ lb /a;lenv;lma /a; where ] CodeWatch> **** Done reading commands from "dbg"
Description
The READ command is used to execute debugger commands, which are contained in the specified filename. Each command is printed to the terminal as it is executed. Seven levels of Read commands may be nested in debugger command files.