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.

Usage Note<br />

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

Examples<br />

1. To trace each call to the printf() procedure, enter:<br />

trace printf<br />

2. To trace each execution of line 22 in the hello.c file, enter:<br />

trace "hello.c":22<br />

3. To trace changes to the x variable within the main procedure, enter:<br />

trace x in main<br />

4. To trace at line 52 only when mutex $m1 is not held, enter:<br />

trace at 52 if $m2.lock == 0<br />

Related Information<br />

The tracei subcommand.<br />

tracei subcommand for dbx: Turn on tracing<br />

Format<br />

tracei [if condition]<br />

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

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

tracei expression at address [if condition]<br />

Description<br />

The tracei subcommand turns on tracing when:<br />

v The contents of the storage at the address change, if the address argument is<br />

specified.<br />

v The instruction at the specified address is executed, if the ataddress option is<br />

specified.<br />

v The procedure specified by procedure is active, if the inprocedure option is<br />

included.<br />

v The condition specified by the condition argument is true, if the ifcondition option<br />

is included.<br />

Options<br />

ataddress<br />

Specifies an address. Tracing is enabled when the contents of this address<br />

change.<br />

ifcondition<br />

Specifies a condition, the meeting of which causes tracing to be enabled.<br />

inprocedure<br />

Specifies a procedure. Tracing is enabled when this procedure is active.<br />

Usage Note<br />

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

Examples<br />

1. To trace each instruction run, enter:<br />

tracei<br />

2. To trace each time the instruction at address 0X100020F0 is run, enter:<br />

tracei at 0x100020f0<br />

dbx: trace<br />

Chapter 2. Shell command descriptions 225

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

Saved successfully!

Ooh no, something went wrong!