Sun Studio 12 Update 1: Debugging a Program With dbx

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 given by the ids, 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.

where:

address is a memory address.

errors are blank separated and can be any combination of:

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

See the unsuppress Command for information on unsuppressing errors.