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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

dbx: thread<br />

5. To display all threads in async state (that is, threads with a cancelability type of<br />

PTHREAD_INTR_ASYNCHRONOUS) that are waiting to be scheduled), enter:<br />

thread async<br />

Because this thread was created with the PTATASYNCHRONOUS attribute<br />

and the limit was reached, this thread was queued for execution. For example,<br />

if the thread limit is set to ten and there are 12 threads, two of them will be<br />

shown as async for the dbx thread command.<br />

6. To display all threads in pcanc state (that is, threads that have been requested<br />

to be canceled by pthread_cancel(), enter:<br />

thread pcanc<br />

7. To hold all threads, enter:<br />

thread hold<br />

8. To hold thread number 1 and 4, enter:<br />

thread hold 1 4<br />

9. To unhold thread number 1 and 4, enter:<br />

thread unhold 1 4<br />

10. To display the focus thread, enter:<br />

thread current<br />

11. To set the focus thread to thread number 1, enter:<br />

thread current 1<br />

12. To get information about thread number 3, enter:<br />

thread info 3<br />

trace subcommand for dbx: Print tracing information<br />

Format<br />

trace [if condition]<br />

trace procedure [if condition]<br />

trace [variable] at sourceline [if condition]<br />

trace [variable] in procedure [if condition]<br />

trace sourceline [if condition]<br />

trace expression at sourceline [if condition]<br />

Description<br />

The trace subcommand prints tracing information for the specified procedure,<br />

function, source line, expression, or variable when the program runs. A condition<br />

can be specified. The dbx debug program associates a number with each trace<br />

subcommand. To view these numbers, use the status subcommand. To turn tracing<br />

off, use the delete subcommand.<br />

Options<br />

atsourceline<br />

Specifies the source line at which to find the expression being traced.<br />

ifcondition<br />

Specifies a condition for the beginning of the trace. The trace begins only<br />

ifcondition is true.<br />

inprocedure<br />

Specifies the procedure in which to find the procedure or variable being<br />

traced.<br />

224 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!