Examining the status of individual read/write lock objects

After you know the names of the individual read/write lock objects in your application, you can access information about each read/write lock object using other dbx subcommands. Read/write lock information can include the read/write lock ID, and its lock, wait, and recursion status, as shown in the preceeding example. For example, you can use the set subcommand to display hexadecimal information about a particular read/write lock object:
(dbx) set $hexchars
(dbx) set $hexints
(dbx) print $l1
(type = "recu", lock = 0x1, num_wait=0x10, num_recur = 0x0, share = 0x0)
(dbx)
You can also use the whatis subcommand to display the data structure associated with a read/write lock object. For example:
(dbx) whatis $l1
struct {
    enum { , recu } type;
    unsigned char lock;
    unsigned long num_wait;
    unsigned long num_recur;
    unsigned char share;
} $I1;

(dbx)