Sun Studio 12: Debugging a Program With dbx

suppress Command

The suppress command suppresses reporting of memory errors during runtime checking. It is valid only in native mode.

Note –

The suppress command is available only on Solaris platforms.

If the dbx rtc_auto_suppress environment variable is on, the memory error at a given location is reported only once.



History of suppress and unsuppress commands (not including those specifying the -d and -reset options).

suppress -d

List of errors being suppressed in functions not compiled for debugging (default suppression). This list is per load object. These errors can be unsuppressed only by using the unsuppress with the -d option.

suppress -d errors

Modify the default suppressions for all load objects by further suppressing errors.

suppress -d errors in load_objects

Modify the default suppressions in the load_objects by further suppressing errors.

suppress -last

At error location suppress present error.

suppress -reset

Set the default suppression to the original value (startup time).

suppress -r id...

Remove the unsuppress events as given by the id(s), which can be obtained with unsuppress command (see unsuppress Command).

suppress -r 0 | all | -all

Remove all the unsuppress events as given by the unsuppress command (see unsuppress Command).

suppress errors

Suppress errors everywhere.

suppress errors in [ functions ] [ files ] [ load_objects ]

Suppress errors in list of functions, list of files, and list of load_objects.

suppress errors at line

Suppress errors at line.

suppress errors at "file":line

Suppress errors at line in file.

suppress errors addr address

Suppress errors at location address.


address is a memory address.

errors are blank separated and can be any combination of:


All errors


Possible memory leak - address in block


Possible memory leak - address in register


Bad free


Duplicate free


Memory leak


Misaligned free


Misaligned read


misaligned write


Out of memory


Read from unallocated memory


Read from uninitialized memory


Write to read-only memory


Write to unallocated memory


Block in use (allocated memory). Though not an error, you can use biu just like errors in the suppress commands.

file is the name of a file.

files is the names of one or more files.

functions is one or more function names.

line is the number of a source code line.

load_objects is one or more load object names.

See Suppressing Errors for more information on suppressing errors.

See the unsuppress Command for information on unsuppressing errors.