Go to main content
Oracle® Developer Studio 12.6: Debugging a Program with dbx

Exit Print View

Updated: June 2017
 
 

suppress Command

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

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

Syntax

suppress

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 command 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 specified by the IDs, which can be obtained with the unsuppress command.

suppress -r 0 | all | -all

Remove all the unsuppress events as specified by the 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.

where:

address is a memory address.

errors are blank separated and can be any combination of the following:

all

All errors

aib

Possible memory leak - address in block

air

Possible memory leak - address in register

baf

Bad free

duf

Duplicate free

mel

Memory leak

maf

Misaligned free

mar

Misaligned read

maw

Misaligned write

oom

Out of memory

rob

Read from array out-of-bounds memory

rua

Read from unallocated memory

rui

Read from uninitialized memory

wob

Write to array out-of-bounds memory

wro

Write to read-only memory

wua

Write to unallocated memory

biu

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 about suppressing errors.

See unsuppress Command for information about unsuppressing errors.