Go backward to Controlling Execution
Go up to Debugging Facilities
Go forward to Displaying Registers and Memory

Tracing Execution

trace
The "trace" command is used to enable or disable execution tracing. It takes no arguments. When issued it enables tracing if it had been disabled and disables tracing if it had been enabled.

The actual information displayed while tracing is enabled is determined by the mode of the debugger. When in source mode, the debugger attempts to display source lines as they are executed. This mode of tracing depends on information produced by "c--" which associates generated machine instructions with lines in the source code. In some cases, the associations made between machine instructions and source lines are not what one might intuitively expect. In particular, the compiler frequently associates the last instructions generated for a construct on one source line with the next source line. For this reason, tracing output may sometimes be slightly inaccurate.



Prev Up Next