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.

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

|<br />

dbx<br />

Files<br />

Examples<br />

The following operators are valid in expressions:<br />

Expression Operators<br />

exp (exponentiation) Algebraic + (addition), - (subtraction), *<br />

(multiplication), / (floating point division),<br />

div (integral division), mod (modulo<br />

division), exp (exponentiation)<br />

Bitwise ? (unary minus), ? (bitwise or), & (bitwise<br />

and), ? (bitwise xor), ~ (one’s<br />

complement), ><br />

(bitwise right shift), bitand (bitwise and),<br />

xor (bitwise xor)<br />

Logical ?? (logical or), && (logical and), ! (logical<br />

not), or, and, not<br />

Comparison < (less than), > (greater than), = (greater than or<br />

equal to), (not equal to), != (not equal<br />

to), = (equal to), == (equal to)<br />

Other sizeof<br />

a.out The object file a.out is the default name of an executable file produced by<br />

the compiler. If no executable is specified on the dbx command line, then<br />

dbx will look for an a.out file to debug.<br />

.dbxinit<br />

Contains initial commands.<br />

.dbxsetup<br />

Contains initial commands.<br />

.dbxhistory<br />

Contains a listing of recently used dbx commands. Used by the history dbx<br />

subcommand.<br />

1. This example shows you how to attach dbx to a running process. To do this, it<br />

is useful to insert a sleep(30) call into the program to be debugged. This will<br />

give you enough time to issue the ps -Aef shell command to find the process ID<br />

of the program. Once you have the process id, issue the shell command: dbx -a<br />

process-id.<br />

Before starting the server, set the following environment variable to have all<br />

DLLs and executables loaded into read/write storage:<br />

export _BPX_PTRACE_ATTACH=yes<br />

You must also ensure that the following environment variable is set before<br />

invoking dbx. This ensures that Language Environment notifies dbx of important<br />

program events.<br />

export _CEE_RUNOPTS="test(all)"<br />

Use dbx commands to set breakpoints, step through program statements, print<br />

variables, work with threads, examine storage, and actions as needed.<br />

2. Example of creating .dbxinit file in your home directory:<br />

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