Debugging a Program With dbx

Setting Breakpoints at Machine-Instruction Level

To set a breakpoint at machine-instruction level, use stopi. The command stopi accepts any event specification, using the syntax:


stopi event-specification
 [modifier]

Commonly used forms of the stopi command are:


stopi [at address
] [-if cond]
stopi in function
 [-if cond]

Setting a Breakpoint at an Address

To set a breakpoint at a specific address:


(dbx) stopi at address

For example:


(dbx) nexti
stopped in hand::ungrasp at 0x12638
(dbx) stopi at &hand::ungrasp
(3) stopi at &hand::ungrasp
(dbx)