next up previous contents index
Next: 7.3 Starting the Debugger Up: 7. SDCDB - Source Previous: 7.1 Compiling for Debugging   Contents   Index

7.2 How the Debugger Works

When the -debug option is specified the compiler generates extra symbol information some of which are put into the the assembler source and some are put into the .cdb file, the linker updates the .cdb file with the address information for the symbols. The debugger reads the symbolic information generated by the compiler & the address information generated by the linker. It uses the SIMULATOR (Daniel's S51) to execute the program, the program execution is controlled by the debugger. When a command is issued for the debugger, it translates it into appropriate commands for the simulator.



Johan Knol
2001-07-13