HP aC++/HP C A.06.25 Programmer's Guide

+check=stack:frame
This option enables runtime checks for illegal writes from the current stack frame that
overflow into the previous stack frame.
+check=stack:variables
This option enables runtime checks for illegal writes to the stack just before or after
some variables on the stack. This includes array, struct/class/union, and variables
whose address is taken. It also includes the overflow check for the stack frame
(+check=stack:frame). In addition to the above checks, this option causes the whole
stack to be initialized to a "poison" value, which can help detect the use of uninitialized
variables on the stack.
+check=stack:none
This option disables all runtime checks for the stack.
+check=stack
The +check=stackoption without any qualifiers is equivalent to
+check=stack:variables at optimization levels 0 and 1. It is equivalent to
+check=stack:frame for optimization level 2 and above.
+check=thread
The +check=thread option enables the batch-mode thread-debugging features of
HP WDB 5.9 or later, and can detect the following thread-related conditions:
The thread attempts to acquire a nonrecursive mutex that it currently holds.
The thread attempts to unlock a mutex or a read-write lock that it has not acquired.
The thread waits (blocked) on a mutex or read-write lock that is held by a thread
with a different scheduling policy.
Different threads non-concurrently wait on the same condition variable, but with
different associated mutexes.
The threads terminate execution without unlocking the associated mutexes or
read-write locks.
The thread waits on a condition variable for which the associated mutex is not
locked.
The thread terminates execution, and the resources associated with the terminated
thread continue to exist in the application because the thread has not been joined
or detached.
The thread uses more than the specified percentage of the stack allocated to the
thread.
The +check=thread option should only be used with multithreaded programs. It is
not enabled by +check=all.
Users can change the behavior of the +check=thread option by providing their own
rtcconfig file. The user specified rtcconfig file can be in the current directory
108 Command-Line Options