Debugging a Program With dbx

Single-Stepping the Machine-Instruction Level

To single-step from one machine-instruction to the next machine-instruction, use nexti or stepi.

nexti and stepi behave the same as their source-code level counterparts: nexti steps over functions, stepi steps into a function called from the next instruction (stopping at the first instruction in the called function). The command forms are also the same. See next and step for a description.

The output from nexti and stepi differs from the corresponding source level commands in two ways. First, the output includes the address of the instruction at which the program is stopped (instead of the source code line number); secondly, the default output contains the disassembled instruction.

For example:


(dbx) func
hand::ungrasp
(dbx) nexti
ungrasp +0x18:  call support
(dbx)