16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

dbx: stop<br />

Options<br />

at [″filename″:]sourceline<br />

Specifies the source line number in either the specified filename or the file<br />

that is currently being debugged. If a specific file name is specified, the<br />

filename must be enclosed with quotation marks and a colon must separate<br />

the ″filename″ from the sourceline. For example:<br />

stop at "myfile":1234<br />

if condition<br />

Specifies the condition, such as true.<br />

in procedure<br />

Specifies the procedure to be called.<br />

Usage Note<br />

The stop subcommand can be run only while the dbx debug program is running.<br />

Examples<br />

1. To stop execution at the first executable statement in the main procedure, enter:<br />

stop in main<br />

2. To stop execution when the value of the x variable is changed on line 12 of the<br />

execution, enter:<br />

stop x at 12<br />

3. To stop execution at a specified line (line 23), when the value of the variable<br />

(myvar) is greater than 2, enter:<br />

stop at 23 if myvar > 2<br />

4. To stop at line 52 only when thread $t2 reaches that line, enter:<br />

stop at 42 if $t2==$current<br />

Related Information<br />

The stopi, delete, clear, and trace subcommands.<br />

stopi subcommand for dbx: Stop at a specified location<br />

Format<br />

stopi address [if condition]<br />

stopi [address] at address [if condition]<br />

stopi [address] in procedure [if condition]<br />

Description<br />

The stopi subcommand sets a stop at the specified location.<br />

v With the ifcondition option, the program stops when the condition is true.<br />

v With the address argument, the program stops when the contents of address<br />

change.<br />

v With the ataddress option, a stop is set at the specified address.<br />

v With the inprocedure option, the program stops when the procedure specified<br />

with the procedure argument is called.<br />

Options<br />

ifcondition<br />

Specifies the condition, such as true.<br />

inprocedure<br />

Specifies the procedure to be called.<br />

222 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!