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: threads<br />

threads: Thread Display and Control<br />

Usage Note<br />

Example<br />

If execution is stopped for any one thread, the entire process and all other threads<br />

in the process also stop. The dbx events such as breakpoints are not specific to<br />

any one thread. If one thread hits a breakpoint, all threads and the process stop. An<br />

automatic way to ensure that other threads do not hit breakpoints set by next(i) or<br />

step(i) is to set the variable $hold_next. dbx will then hold all threads except the<br />

current thread during those operations, then unhold all threads after the operation is<br />

complete. Holding all threads, or holding a thread that may release a mutex will<br />

cause the user program to deadlock. Conditional breakpoints can be used to<br />

specify breakpoints for any one particular thread by checking the execution state of<br />

the thread.<br />

’stop at 42 if $t2==$current’ will set a breakpoint at line 42 only for thread two.<br />

Related Information<br />

For thread display and control, see the condition, mutex, readwritelock, and<br />

thread commands. For manipulation of thread-oriented dbx variables ($c,<br />

$t, $l, $current, $hold_next, $cv_events, $mv_events, $tv_events, and<br />

$lv_events), see the assign, print, set, and whatis commands.<br />

usage: Basic <strong>Command</strong> Usage<br />

Usage Note<br />

Basic dbx command usage:<br />

run begin or restart execution of the program<br />

print <br />

print the value of the expression<br />

where print currently active functions (stack trace)<br />

stop at <br />

set a breakpoint at the line<br />

stop in <br />

set a breakpoint when a particular function is called<br />

cont continue execution<br />

step single step one line<br />

next step to next line (skip over calls)<br />

trace <br />

trace execution of the line<br />

trace <br />

trace calls to the procedure<br />

trace <br />

trace changes to the variable<br />

trace at <br />

print when is reached<br />

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