Sun Studio 12 Update 1: Debugging a Program With dbx

Setting Breakpoints at the Machine-Instruction Level

To set a breakpoint at the machine-instruction level, use the stopi command. The command 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]

For more information, see stopi Command.

Setting a Breakpoint at an Address

To set a breakpoint at a specific address, type:

(dbx) stopi at address

For example:

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