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

Portability<br />

Related Information<br />

touch<br />

dbx — Use the debugger<br />

Format<br />

Description<br />

P<strong>OS</strong>IX.2, X/Open Portability Guide, <strong>UNIX</strong> systems.<br />

The –c option is an extension of the P<strong>OS</strong>IX standard.<br />

Appendix I also explains how to set the local time zone with the TZ environment<br />

variable.<br />

dbx [options] [executable-file [program-arguments ...]]<br />

dbx [options] [attach-type] process-id<br />

dbx [options] -C core-file<br />

dbx is a source-level debugger for z/<strong>OS</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong>. It provides an<br />

environment to debug and run C and C++ programs, as well as performing machine<br />

level debug. You can carry out operations such as the following:<br />

v Examine object files<br />

v Run a program in a controlled environment<br />

v Set breakpoints at selected statements or run the program one line at a time<br />

v Debug using symbolic variables and display them in their correct format<br />

v View an MVS dump<br />

v Attach to a running program, and perform debugging operations.<br />

The executable-file argument is an load module produced by a compiler. To perform<br />

source-level debugging, you need to compile your executable with symbolic<br />

information. This is accomplished by specifying the –g or –Wc,debug compiler flags<br />

on the compiler command line.<br />

Note: If the object file is not compiled with the –g or –Wc,debug option on the<br />

c89/cc/c++ command, or if the user compiles with optimization, the<br />

capabilities of the dbx command will be reduced.<br />

The core-file argument is an MVS dump that exists as a file in the z/<strong>OS</strong> <strong>UNIX</strong> file<br />

system or in an MVS data set.<br />

dbx allows the end user to customize its behavior via two files that are processed<br />

during initialization. These are .dbxsetup and .dbxinit . Each file can contain a list<br />

of dbx subcommands that will be run before the dbx prompt is displayed. During<br />

startup, dbx will first search for these files in the current working directory and then<br />

in the user’s $HOME directory. If a file is found, it is parsed and the search for that<br />

specific file terminates. Use a text editor to create a .dbxsetup or .dbxinit file.<br />

Any subcommands in the .dbxsetup file are executed before the debug target<br />

program is loaded. This allows the user to tailor dbx’s operational behavior during<br />

date<br />

Chapter 2. Shell command descriptions 183

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

Saved successfully!

Ooh no, something went wrong!