DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
adb: absolute debugger

Single-stepping a program

To execute one instruction at a time, use the :s command. The command executes one instruction and returns control to adb. The command has the following form:

[address ] [, count ] :s

In the above command line address must be the address of the instruction to execute, and count is the number of commands to execute.

If address is not specified, adb uses the current address. If count is specified, adb continues to execute each successive instruction until count instructions have been executed. For example, the following command executes the first 5 instructions in the function main:

   main,5:s

Next topic: Killing a program
Previous topic: Stopping a program with interrupt and quit

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003