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 />

debugging. For example: dbx -p 9.123.456.78:8001 mypgm. In this mode<br />

the command line prompt will not be displayed nor will the user be able to<br />

enter dbx subcommands through the command line interface. In addition,<br />

the following dbx subcommands are not supported when entered via a GUI<br />

debug console (command line) interface: detach, edit, multproc, object,<br />

quit, rerun, run, sh.<br />

If :port is not specified, port 8001 will be used as the default.<br />

–q Suppresses some of the dbx startup messages. Specifically, this will only<br />

print the dbx version information before the prompt is displayed. All other<br />

messages will be suppressed. Note that this option does not affect the<br />

verbosity of normal dbx operation.<br />

–r Runs the object file immediately. If it ends successfully, the dbx debug<br />

program is exited. Otherwise, the debug program is entered and the reason<br />

for termination is reported.<br />

Note: Unless –r is specified, the dbx command prompts the user and waits<br />

for a command. However, you can specify program arguments on<br />

dbx even when –r is not used. For example:<br />

dbx myprog arg1 arg2 arg3<br />

–u Deprecated. This option will be ignored and remains only for compatibility<br />

purposes.<br />

Expression Handling<br />

Specify expressions in dbx with a subset of C and Pascal syntax. A prefix *<br />

(asterisk) or a postfix ^ (circumflex) denotes indirection. Specify portions of an array<br />

by separating the lower and upper bounds with .. (two periods).<br />

Use [ ] (square brackets) or ( ) (parentheses) to enclose array subscripts. Use the<br />

field reference operator . (period) with pointers and records.<br />

Note: The field reference operator . (period) makes the C operator → unnecessary<br />

(although it is supported).<br />

When displaying variables and expressions, the dbx command resolves names first<br />

using the static scope of the current function. The dynamic scope is used if the<br />

name is not defined in the first scope. If static and dynamic searches do not yield a<br />

result, an arbitrary symbol is chosen and the system prints the message (using<br />

Module.Variable). The Module.Variable construction is the name of an identifier<br />

qualified with a block name. Override the name resolution procedure by qualifying<br />

an identifier with a block name. Source files are treated as modules named by the<br />

filename without the language suffix (such as the .c suffix on a C language<br />

program).<br />

The dbx command debug program checks types of expressions. Override types of<br />

expressions by using TypeName (Expression). When there is no corresponding<br />

named type, use the &TypeName special construct to represent a pointer to the<br />

named type. Represent a pointer to enum, struct, or union tag with the<br />

$$TagName construct.<br />

A condition can be any dbx expression that evaluates to a true or false value. This<br />

pertains to four dbx subcommands: stop, stopi, trace, and tracei.<br />

dbx<br />

Chapter 2. Shell command descriptions 185

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

Saved successfully!

Ooh no, something went wrong!