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.

If you compile an MVS data set source using the -g option, you can use<br />

dbx to perform source-level debugging for the executable file. You must first<br />

issue the dbx use subcommand to specify a path of double slash (//),<br />

causing dbx to recognize that the symbolic name of the primary source file<br />

is an MVS data set. For information on the dbx command and its use<br />

subcommand, see “use subcommand for dbx: Set the list of directories to<br />

be searched” on page 227.<br />

For more information on using dbx, see z/<strong>OS</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong><br />

Programming Tools.<br />

The z/<strong>OS</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> web page also has more information<br />

about dbx. Go to http://www.ibm.com/servers/eserver/zseries/zos/unix/.<br />

For more information on the _BPX_PTRACE_ATTACH environment<br />

variable, see z/<strong>OS</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> Programming: Assembler<br />

Callable <strong>Services</strong> Reference.<br />

The GONUMBER option is automatically turned on by the -g option, but<br />

can also be turned on independently. There is no execution path overhead<br />

incurred for turning on this option, only some additional space for the saved<br />

line number tables.<br />

For 31-bit compiles and In Storage Debug (ISD) information, the<br />

GONUMBER option generates tables that correspond to the input source<br />

file line numbers. These tables make it possible for Debug Tools and for<br />

error trace back information in CEE dumps to display the source line<br />

numbers. Having source line numbers in CEE dumps improves<br />

serviceability costs of applications in production. The z/<strong>OS</strong> XL C/C++ User’s<br />

Guide contains more information on the GONUMBER compiler option.<br />

Example: The following is an example of compiling with the GONUMBER<br />

compiler option:<br />

c89 -o outfile -Wc,’GONUM’ file.c<br />

c89, cc, and c++<br />

Note: -g forces the NOOPTIMIZE compiler option regardless of its position<br />

in the command line.<br />

-I directory<br />

Note: The I option signifies an uppercase i, not a lowercase L.<br />

-I specifies the directories to be used during compilation in searching for<br />

include files (also called header files).<br />

Absolute pathnames specified on #include directives are searched exactly<br />

as specified. The directories specified using the -I option or from the usual<br />

places are not searched.<br />

If absolute pathnames are not specified on #include directives, then the<br />

search order is as follows:<br />

1. Include files enclosed in double quotes (") are first searched for in the<br />

directory of the file containing the #include directive. Include files<br />

enclosed in angle-brackets (< >) skip this initial search.<br />

2. The include files are then searched for in all directories specified by the<br />

-I option, in the order specified.<br />

3. Finally, the include files are searched for in the usual places. (See<br />

Usage Note 4 on page 98 for a description of the usual places.)<br />

Chapter 2. Shell command descriptions 73

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

Saved successfully!

Ooh no, something went wrong!