# Loader debugger script # Bryce Himebaugh # 10/5/99 # This script corrects an issue where the debugger reports a "corrupt symbol table" when the *.out file # is loaded. This is due to some sort of interlock between the *.out file and variables in the watch window. # To correct the problem, a buffer directory will be used to store the *.out file that the debugger loads along # with the *.db1, *.db2, *.blk files. This script expects that a buffer directory has been created. It kills the # current debug session, and copies the *.out file to the buffer directory. The debugger then loads from this # buffered file. This allows the *.out file in the main project directory to be rebuilt without effecting the # debugger. The script will just need to be re-run to update the buffer *.out file. # Setup vectors to overlay # 200 = PI/T set vectskip = ( 200 ) # Kill the current debug session - running from the *.out in the buffer directory debug -p com2=19200 - # Now that there is no current session, the *.out file can be replaced without causing the debugger to # generate the "corrupt symbol table" error copy j:\test_ex\motor_drv\drv.out j:\test_ex\motor_drv\buffer\drv.out # Load the *.out file that was copied into the buffer directory # ---> Simulator #debug -d j:\test_ex\csym_2\buffer -V 68040 j:\test_ex\csym_2\buffer\csym.out # ---> Monitor debug -p com2=19200 -d j:\test_ex\motor_drv\buffer -V 68040 j:\test_ex\motor_drv\buffer\drv.out # Variables to Watch echo -b "add vars to the watch" watch lf_desired_speed=int watch rf_desired_speed=int watch lr_desired_speed=int watch rr_desired_speed=int # Terminate the script echo -b "Done" exit