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

Usage Note<br />

v The quit subcommand can be run only while the dbx debug program is running.<br />

v The quit subcommand is not supported in GUI (socket) mode (-p).<br />

Example<br />

To exit the dbx debug program, enter:<br />

quit<br />

readwritelock subcommand for dbx: Display a list of active read/write<br />

lock objects<br />

Format<br />

readwritelock [number ...]<br />

readwritelock lock<br />

readwritelock unlock<br />

readwritelock holder<br />

readwrite noholder<br />

Description<br />

The readwritelock subcommand displays a list of active read/write lock objects for<br />

the application program. All active read/write lock objects are listed unless you use<br />

the number parameter to specify the read/write lock objects you want listed. You<br />

can also select only locked or unlocked read/write locks, or read/write locks with or<br />

without holders, by using the lock, unlock, holder, or noholder options.<br />

In order to capture the read/write lock variables, dbx must be debugging your<br />

program before the read/write lock variable is created. You must have coded your<br />

application in one of the following ways:<br />

v Add the following line at the top of the C program:<br />

#pragma runopts(TEST(ALL))<br />

Or:<br />

v Code an assembler program, CEEUOPT, to invoke the CEEXOPT macro, which<br />

specifies TEST(ALL). For examples of how to code this program, see z/<strong>OS</strong> XL<br />

C/C++ Programming Guide .<br />

Or:<br />

v Specify test(all) in the _CEE_RUNOPTS environment variable:<br />

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

Usage Note<br />

The readwritelock subcommand can be run only while the dbx debug program is<br />

running.<br />

Examples<br />

1. To display all read/write lock objects, enter:<br />

readwritelock<br />

2. To display read/write lock objects number 1 and number 4, enter:<br />

readwritelock 1 4<br />

3. To display all locked read/write lock objects, enter:<br />

readwritelock lock<br />

4. To display all unlocked read/write lock objects, enter:<br />

readwritelock unlock<br />

5. To display all read/write lock objects with holders, enter:<br />

dbx: quit<br />

Chapter 2. Shell command descriptions 211

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

Saved successfully!

Ooh no, something went wrong!