Sun Studio 12 Update 1: Debugging a Program With dbx

wheni Command

The wheni command executes commands when a given low-level event occurs. It is valid only in native mode.

The wheni command has the following general syntax:


wheni event_specification [modifier]{command... ; }

When the specified event occurs, the commands are executed.

The following specific syntax is valid:

wheni at address_expression { command; }

Execute command when address_expression is reached.


address is any expression resulting in or usable as an address.

command is the name of a command.

For a list and the syntax of all events see Setting Event Specifications.